That then gives me the information I’d need to run that test case (and only
that test case) again.
Is there any way (however hacky / brittle) to do something similar in an RSpec
before block, or do I need to delve into writing a formatter?
cheers,
Matt
before { puts example.location }
Good answer!
Now, for bonus points: when the example is from a set of shared
examples, is there an easy way to get the location of the line where the
shared examples were included? (i.e. the file:line I’d need to pass to rspec in order to actually re-run that example). I can grep, but it
would be easier if I could ask RSpec’s model. Possible?