DEV Community

Cover image for Rspec: too many failing tests → `--fail-fast`
Thomas
Thomas

Posted on

Rspec: too many failing tests → `--fail-fast`

A simple solution is to fix them one by one and stop Rspec.

Of course there's an option for that: rspec --fail-fast

You can use the configuration file:

RSpec.configure do |c|
  c.fail_fast = true
end

Top comments (1)

Collapse
 
pashagray profile image
Pavel Tkachenko

I also recommend to move such settings to .rspec file, so every developer can tune these settings easily.

.rspec

--color
--fail-fast