Created
July 5, 2012 21:57
-
-
Save gkop/3056743 to your computer and use it in GitHub Desktop.
Open page in browser when cuke fails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in features/support/env.rb | |
After do |scenario| | |
# if scenario failed, open page in browser | |
if ENV["SAVE_AND_OPEN_PAGE"] == "true" && scenario.failed? | |
save_and_open_page | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment