-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #543 from brasmusson/junit-formatter-strict
Let the JUnitFormatter mark skipped tests as failures in strict mode
- Loading branch information
Showing
6 changed files
with
108 additions
and
9 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
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
5 changes: 5 additions & 0 deletions
5
core/src/main/java/cucumber/runtime/formatter/StrictAware.java
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,5 @@ | ||
package cucumber.runtime.formatter; | ||
|
||
public interface StrictAware { | ||
public void setStrict(boolean strict); | ||
} |
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
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
15 changes: 15 additions & 0 deletions
15
core/src/test/resources/cucumber/runtime/formatter/JUnitFormatterTest_1_strict.report.xml
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,15 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<testsuite tests="2" failures="2"> | ||
<testcase classname="Feature_1" name="Scenario_1" time="0"> | ||
<failure message="The scenario has pending or undefined step(s)"><![CDATA[Given step_1................................................................undefined | ||
When step_2.................................................................undefined | ||
Then step_3.................................................................undefined | ||
]]></failure> | ||
</testcase> | ||
<testcase classname="Feature_1" name="Scenario_2" time="0"> | ||
<failure message="The scenario has pending or undefined step(s)"><![CDATA[Given step_1................................................................undefined | ||
When step_2.................................................................undefined | ||
Then step_3.................................................................undefined | ||
]]></failure> | ||
</testcase> | ||
</testsuite> |