Sha256: 5885c1bd2b56c38bc93a85887ebb5cebc5d32446f1db930e3704ff1e28228f9b

Contents?: true

Size: 1.17 KB

Versions: 3

Compression:

Stored size: 1.17 KB

Contents

@spawn
Feature: Fail fast

  The --fail-fast flag causes Cucumber to exit immediately after the first 
  scenario fails.

  @todo-windows
  Scenario: When a scenario fails
    Given a file named "features/bad.feature" with:
      """
      Feature: Bad
        Scenario: Failing
          Given this step fails
      """
    And a file named "features/good.feature" with:
    """
    Feature: Good
      Scenario: Passing
        Given this step passes
    """
    And the standard step definitions
    When I run `cucumber --fail-fast`
    Then it should fail
    And the output should contain:
    """
    1 scenario (1 failed)
    """

  @todo-windows
  Scenario: When all the scenarios pass
    Given a file named "features/first.feature" with:
      """
      Feature: first feature
        Scenario: foo first
          Given this step passes
        Scenario: bar first
          Given this step passes
      """
    And a file named "features/second.feature" with:
      """
      Feature: second
        Scenario: foo second
          Given this step passes
        Scenario: bar second
          Given this step passes
      """
    When I run `cucumber --fail-fast`
    Then it should pass

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cucumber-3.0.1 features/docs/cli/fail_fast.feature
cucumber-3.0.0 features/docs/cli/fail_fast.feature
cucumber-3.0.0.pre.2 features/docs/cli/fail_fast.feature