mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 23:36:11 +01:00
0a3f511cfe
With these changes, all these benchmarks ```cpp BENCHMARK("Empty benchmark") {}; BENCHMARK("Throwing benchmark") { throw "just a plain literal, bleh"; }; BENCHMARK("Asserting benchmark") { REQUIRE(1 == 2); }; BENCHMARK("FAIL'd benchmark") { FAIL("This benchmark only fails, nothing else"); }; ``` report the respective failure and mark the outer `TEST_CASE` as failed. Previously, the first two would not fail the `TEST_CASE`, and the latter two would break xml reporter's formatting, because `benchmarkFailed`, `benchmarkEnded` etc would not be be called properly in failure cases. |
||
---|---|---|
.. | ||
Clara.tests.cpp | ||
CmdLine.tests.cpp | ||
Details.tests.cpp | ||
FloatingPoint.tests.cpp | ||
GeneratorsImpl.tests.cpp | ||
InternalBenchmark.tests.cpp | ||
PartTracker.tests.cpp | ||
RandomNumberGeneration.tests.cpp | ||
Reporters.tests.cpp | ||
String.tests.cpp | ||
StringManip.tests.cpp | ||
Tag.tests.cpp | ||
ToString.tests.cpp | ||
UniquePtr.tests.cpp | ||
Xml.tests.cpp |