Sha256: e4e74fb93b3cb2a17af515c880d2195bec3763ea711c43265b72740fdbd0b202

Contents?: true

Size: 730 Bytes

Versions: 2

Compression:

Stored size: 730 Bytes

Contents

Feature: --fail-fast

  Use the `--fail-fast` option to tell RSpec to stop running the test suite on the first failed test.

  You may also specify `--no-fail-fast` to turn it off (default behaviour).

  Background:
    Given a file named "fail_fast_spec.rb" with:
      """ruby
      describe "fail fast" do
        it "passing test" do; end
        it "failing test" do
          fail
        end
        it "this should not be run" do; end
      end
      """

  Scenario: Using --fail-fast
    When I run `rspec . --fail-fast`
    Then the output should contain ".F"
    Then the output should not contain ".F."

  Scenario: Using --no-fail-fast
    When I run `rspec . --no-fail-fast`
    Then the output should contain ".F."

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec-core-3.0.0.beta2 features/command_line/fail_fast.feature
rspec-core-3.0.0.beta1 features/command_line/fail_fast.feature