RSpec.configure do |config| # ... config.example_status_persistence_file_path = 'spec/examples.txt' # ... end
# ... spec/examples.txt
In command line
bundle exec rspec spec --only-failures
Now each time you fix some specs and rerun this command it will only test specs that failed on the previous run. This improves red-green-refactor iteration speed without any complex setup or additional tools.