We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've added an Around hook to my Cucumber features that I had hoped would cause pry-rescue to start pry when an exception was thrown:
Around do |scenario, block| Pry::rescue do block.call end end
The Around hook is definitely being called, however exceptions thrown within steps aren't rescued. E.g. this step:
When(/^I perform the action$/) do raise 'hell' end
... causes the feature to fail, but doesn't drop me into pry at the console.
The text was updated successfully, but these errors were encountered:
Some discussion here on SO: http://stackoverflow.com/questions/19531678/using-pry-rescue-to-debug-exceptions-in-cucumber-steps
Sorry, something went wrong.
Closing this as haven't touched it in seven years :)
No branches or pull requests
I've added an Around hook to my Cucumber features that I had hoped would cause pry-rescue to start pry when an exception was thrown:
The Around hook is definitely being called, however exceptions thrown within steps aren't rescued. E.g. this step:
... causes the feature to fail, but doesn't drop me into pry at the console.
The text was updated successfully, but these errors were encountered: