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.
Written by Maciej Ciemborowicz
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#