I have a test suite of rspec tests which are divided into different files. Every file represents one test scenario with some number of test steps. Now, on some particular tests, it can happen that specific step fails but it is too time consuming and not needed to run rest of the steps in that scenario.
I know there is an option --fail-fast in rspec but if I'm running tests like: rspec spec/* that will mean that when first step fails in any script, it will abort complete execution. I'm just looking for mechanism to abort execution of that specific test scenario (test script) when failure happens but to continue execution of other test scenarios.
Thanks for the help, Bakir
Use the RSpec-instafail gem.
According to its documentation, it: