Run rspec tests
bundle exec rspecTo re-run just the tests that failed in the most recent running... First, you must make sure that:
In this file:
spec/spec_helper.rbyou 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.txtYou have added
examples.txtto .gitignore
Then, after running the tests and some failed, you can run this:
bundle exec rspec --only-failuresTemporarily 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.
Capybara.javascript_driver = :chromePreviousSetup Solid Queue/Cable/Cache in Rails 8 to share a single databaseNextZipMessage Tests Commands
Last updated