rspec/rspec-expectations — Issue #118: Support configurable [no-]fail-fast mode
Author: dchelimsky
Created: 2012-02-14 14:20:58+00:00
State: open

The one-expectation-per-example guideline is motivated by the goal of seeing all failed expectations reported, not just the first one in any example. We could satisfy that need by recording failed expectations and reporting them at the end of each example instead of raising errors. This is how [Jasmine](https://github.com/pivotal/jasmine) works, and it is quite liberating.

Of course, some users will prefer a fail-fast mode, so my proposal is that we have add a config option that defaults to true, e.g.

```ruby
RSpec.configure do |config|
config.expectations_fail_fast = true # or false
end
```

Then we can choose to have it default to false in 3.0 (or not).

Of course, when using rspec-expectations outside of rspec, we'd need a different means of configuring this for that scenario.

See rspec/rspec-core#573