Skip to content

Instantly share code, notes, and snippets.

@bfaloona
Created February 18, 2011 19:07
Show Gist options
  • Save bfaloona/834214 to your computer and use it in GitHub Desktop.
Save bfaloona/834214 to your computer and use it in GitHub Desktop.
Cucumber bug 701
# features/bug701_rerun_scenario_outline.feature
#
# To repro bug 701, run:
# cucumber features/bug701_rerun_scenario_outline.feature -f rerun -o rerun.txt
# then:
# cat rerun.txt
# I expect the file to have two failing references, but the scenario outline is NOT referenced at all.
#
Feature: Bug701 - Rerun formatter does not include failures that occur in scenario outline examples
Scenario Outline: examples - passing and failing
Then this step works
And this step <action>
Examples:
| action |
| fails |
| fails |
Scenario: failing scenario
Then this step works
Then this step fails
# features/step_definitions/bug701_steps.rb
#
When /^this step (works|fails)$/ do |action|
raise "Exception explicitly raised" if action == 'fails'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment