Skip to content

Commit

Permalink
Add consistently failing scenario to test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
danascheider committed Oct 19, 2015
1 parent e8320d3 commit a41a081
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions features/docs/cli/retry_failing_tests.feature
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,18 @@ Feature: Retry failing tests
Given a scenario "Flakey" that fails once, then passes
And a scenario "Shakey" that fails twice, then passes
And a scenario "Solid" that passes
And a scenario "No Dice" that fails

Scenario:
When I run `cucumber --retry 1`
When I run `cucumber -q --retry 1`
Then it should fail with:
"""
3 scenarios (2 passed, 1 failed)
4 scenarios (2 passed, 2 failed)
"""

Scenario:
When I run `cucumber --retry 2`
When I run `cucumber -q --retry 2`
Then it should pass with:
"""
3 scenarios (3 passed)
4 scenarios (3 passed, 1 failed)
"""

0 comments on commit a41a081

Please sign in to comment.