Sha256: 9bff198acb07a7342e4914bcef80968cedfac0f3f11c088b97b3d168317f59e3

Contents?: true

Size: 1.34 KB

Versions: 6

Compression:

Stored size: 1.34 KB

Contents

Feature: Other Reporter
  As a developer
  In order to adjust the output to my requirements (e.g. inside a CI)
  I want to pass a command line argument to change the reporter

  Background:
    Given I am in a project using gurke
    And a file "features/test.feature" with the following content exists
      """
      Feature: F
        Scenario: Scenario A
          Given this is a success

      """
    And a file "features/support/steps/test_steps.rb" with the following content exists
      """
      module TestSteps
        step("This is a success") { }
      end
      Gurke.configure{|c| c.include TestSteps }
      """

  Scenario: Use the default reporter without addition arguments
    When I execute "bundle exec gurke"
    Then the program output should not include "##teamcity"

  Scenario: Use specified reporter when run with --formatter
    When I execute "bundle exec gurke --formatter team_city"
    Then the program output should include "##teamcity[testStarted name='Scenario A']"
    Then the program output should include "##teamcity[testFinished name='Scenario A']"

  Scenario: Use specified reporter when run with -f
    When I execute "bundle exec gurke -f team_city"
    Then the program output should include "##teamcity[testStarted name='Scenario A']"
    Then the program output should include "##teamcity[testFinished name='Scenario A']"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gurke-2.4.2 features/gurke/other_reporter.feature
gurke-2.4.1 features/gurke/other_reporter.feature
gurke-2.4.0 features/gurke/other_reporter.feature
gurke-2.3.0 features/gurke/other_reporter.feature
gurke-2.2.2 features/gurke/other_reporter.feature
gurke-2.2.1 features/gurke/other_reporter.feature