diff options
| author | Martin Hořeňovský | 2021-06-07 19:53:34 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-10-10 22:21:39 +0200 |
| commit | b406ad52a77c3f59e1880ff64d5f3ed4e962364d (patch) | |
| tree | d5a17526bfa5b9c6e65e254db842ca84ac2c8a47 /tests/SelfTest/UsageTests/Condition.tests.cpp | |
| parent | de67278e145bf0d5d4ceb3e2bdcf42fda5b4876d (diff) | |
| download | catch3-b406ad52a77c3f59e1880ff64d5f3ed4e962364d.tar.gz | |
Mark !mayfail tests as skipped in the JUnit reporter
Should fix #2116
Diffstat (limited to 'tests/SelfTest/UsageTests/Condition.tests.cpp')
| -rw-r--r-- | tests/SelfTest/UsageTests/Condition.tests.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/SelfTest/UsageTests/Condition.tests.cpp b/tests/SelfTest/UsageTests/Condition.tests.cpp index 167752e1..916e98f1 100644 --- a/tests/SelfTest/UsageTests/Condition.tests.cpp +++ b/tests/SelfTest/UsageTests/Condition.tests.cpp @@ -86,6 +86,19 @@ TEST_CASE( "Equality checks that should fail", "[.][failing][!mayfail]" ) CHECK( x == Approx( 1.301 ) ); } +// Needed to test junit reporter's handling of mayfail test cases and sections +TEST_CASE("Mayfail test case with nested sections", "[!mayfail]") { + SECTION("A") { + SECTION("1") { FAIL(); } + SECTION("2") { FAIL(); } + } + SECTION("B") { + SECTION("1") { FAIL(); } + SECTION("2") { FAIL(); } + } +} + + TEST_CASE( "Inequality checks that should succeed" ) { TestData data; |