Reputation: 3188
With RSpec we can use the --only-failures
flag to run the examples in failed_examples.txt.
If I copy that file over as featured_examples.txt is there a way to run RSpec with examples in that file?
Upvotes: 0
Views: 27
Reputation: 6638
RSpec doesn't seem to support it, but bash to the rescue!
SOmething like this should work
cat failed_examples.txt | xargs rspec
or maybe
rspec $(cat failed_examples.txt)
Upvotes: 1