-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If an Exception is thrown during a @before hook, in the report, the s…
…cenario is displayed as "passed" #34 * fixes calculation of duration and failedStepCounts in features-overview * mark scenarios as failed when exceptions in @before hook is thrown
- Loading branch information
1 parent
0f7daad
commit 42dccdf
Showing
3 changed files
with
23 additions
and
8 deletions.
There are no files selected for viewing
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
7 changes: 7 additions & 0 deletions
7
...er/src/test/resources/at/porscheinformatik/cucumber/formatter/exception_in_before.feature
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@ExceptionOnBefore | ||
Feature: Check whether an exception in the before-hook doesn't mess up the report | ||
|
||
Scenario: Simple Addition | ||
Given a calculator I just turned on | ||
When I add 4 and 5 | ||
Then the result is 9 |
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