Run rspec tests
To re-run just the tests that failed in the most recent running... First, you must make sure that:
In this file:
spec/spec_helper.rb
you have uncommented and set up this line:config.example_status_persistence_file_path = "spec/examples.txt"
You have created a blank text file and saved it in /spec folder:
examples.txt
You have added
examples.txt
to .gitignore
Then, after running the tests and some failed, you can run this:
Temporarily run tests in non-headless mode
In /spec/rails_helper.rb
add or uncomment this code, then run the tests. Comment this out when you want to switch back to headless.
PreviousSetup Solid Queue/Cable/Cache in Rails 8 to share a single databaseNextZipMessage Tests Commands
Last updated