Add test for !shouldfail and failed benchmarks

This commit is contained in:
Martin Hořeňovský
2021-08-21 00:06:31 +02:00
parent 7f3297f7e8
commit 1cbbc5d2cb
2 changed files with 15 additions and 0 deletions

View File

@@ -433,3 +433,8 @@ TEST_CASE("Failing benchmarks", "[!benchmark][.approvals]") {
};
}
}
TEST_CASE( "Failing benchmark respects should-fail",
"[!shouldfail][!benchmark][.approvals]" ) {
BENCHMARK( "Asserting benchmark" ) { REQUIRE( 1 == 2 ); };
}