Sha256: d9acd08048d0274af050b9d2b7a68459896fb917f9c01a5f70c2a0bde41e3556

Contents?: true

Size: 1.8 KB

Versions: 4

Compression:

Stored size: 1.8 KB

Contents

@announce
Feature: Publish results

  Background:
    Given I set the environment variables to:
      | variable           | value       |
      | CUCUMBER_PRO_TOKEN | valid-token |
      | BUILD_NUMBER       | 22          |

  Scenario: A couple of scenarios
    Given a git repo
    And a feature "features/test.feature" with:
      """
      Feature:
        Scenario:
          Given passing

        Scenario:
          Given failing
      """
    When I run `cucumber -f Cucumber::Pro -o /dev/null -f pretty`
    Then the results service should receive a header
    And the results service should receive these test-step results:
      | status | path                  | location |
      | passed | features/test.feature | 3        |
      | failed | features/test.feature | 6        |
    And the results service should receive these test-case results:
      | status | path                  | location |
      | passed | features/test.feature | 2        |
      | failed | features/test.feature | 5        |
    And the stderr should not contain anything

  Scenario: A scenario outline

    Note that we don't specify how step results will be published. This is because it's hard to get
    a location for steps when a scenario outline executes.

    Given a git repo
    And a feature "features/test.feature" with:
      """
      Feature:
        Scenario Outline:
          Given <result>

          Examples:
          | result  |
          | passing |
          | failing |
      """
    When I run `cucumber -f Cucumber::Pro -o /dev/null -f pretty`
    Then the results service should receive a header
    And the results service should receive these test-case results:
      | status | path                  | location |
      | passed | features/test.feature | 7        |
      | failed | features/test.feature | 8        |

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cucumber-pro-0.0.17 features/publish_results.feature
cucumber-pro-0.0.16 features/publish_results.feature
cucumber-pro-0.0.15 features/publish_results.feature
cucumber-pro-0.0.14 features/publish_results.feature