You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 16, 2018. It is now read-only.
Dan Kohn edited this page Jun 17, 2015
·
1 revision
Adding the following as the contents of features/support/debugging.rb can be helpful in debugging failing steps:
# `LAUNCHY=1 cucumber` to open page on failureAfterdo |scenario|
# rubocop:disable Lint/Debuggersave_and_open_pageifscenario.failed? && ENV['LAUNCHY']# rubocop:enable Lint/Debuggerend# `FAST=1 cucumber` to stop on first failureAfterdo |scenario|
Cucumber.wants_to_quit=ENV['FAST'] && scenario.failed?end# `DEBUG=1 cucumber` to drop into debuggerBeforedo |scenario|
nextunlessENV['DEBUG']# rubocop:disable Lint/Debuggerputs"Debugging scenario: #{scenario.title}"binding.pry# rubocop:enable Lint/Debuggerend
By setting an environment variable, you can cause Cucumber to use various debugging tools.