From 738c0d4e080d381d9099099c270b6b2b3d77cb2f Mon Sep 17 00:00:00 2001 From: Miles Gould Date: Thu, 16 Feb 2017 13:24:50 +0000 Subject: [PATCH] Store spec failures, for `rspec --only-failures` The list of failing tests is stored in tmp/examples.txt, which is already gitignored. --- spec/spec_helper.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index ee8556548..488353ff7 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -85,4 +85,7 @@ RSpec.configure do |config| # test failures related to randomization by passing the same `--seed` value # as the one that triggered the failure. Kernel.srand config.seed + + # Remember which tests failed, so you can run rspec with the `--only-failures` flag. + config.example_status_persistence_file_path = "tmp/examples.txt" end