Skip to content

Instantly share code, notes, and snippets.

@filipechagas
Created June 14, 2017 12:08
Show Gist options
  • Save filipechagas/9598c9326fe74cb27b48db45807fd8df to your computer and use it in GitHub Desktop.
Save filipechagas/9598c9326fe74cb27b48db45807fd8df to your computer and use it in GitHub Desktop.
Saving failing tests in a file to run them later
# spec_helper.rb
RSpec.configure do |config|
config.example_status_persistence_file_path = "examples.txt"
end
# when running the tests it's gonna write the failing tests in the examples.txt file
# then you can run the tests again this way
# rspec spec --only-failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment