Created
February 18, 2011 19:07
-
-
Save bfaloona/834214 to your computer and use it in GitHub Desktop.
Cucumber bug 701
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
# 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