Last Updated: February 25, 2016
·
850
· ciembor

Fail fast with RSpec

Do you want to fulfill bunch of tests? You should fulfill them one by one. By default rspec displays information about every failing test. This is very distracting. You can use --fail-fast option which breaks rspec after the first failure.

rspec spec/your_spec.rb --fail-fast

Thanks to that you can focus on what is really necessary at the moment.