Skip to content

Instantly share code, notes, and snippets.

@gkop
Created July 5, 2012 21:57
Show Gist options
  • Save gkop/3056743 to your computer and use it in GitHub Desktop.
Save gkop/3056743 to your computer and use it in GitHub Desktop.
Open page in browser when cuke fails
# 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