catch2/tests/SelfTest/UsageTests
Philip Salzmann d548be26e3
Add new SKIP macro for skipping tests at runtime (#2360)
* Add new SKIP macro for skipping tests at runtime

This adds a new `SKIP` macro for dynamically skipping tests at runtime.
The "skipped" status of a test case is treated as a first-class citizen,
like "succeeded" or "failed", and is reported with a new color on the
console.

* Don't show "skipped assertions" in console/compact reporters

Also extend skip tests to cover a few more use cases.

* Return exit code 4 if all test cases are skipped

* Use LightGrey for the skip colour

This isn't great, but is better than the deep blue that was borderline
invisible on dark backgrounds. The fix is to redo the colouring
a bit, including introducing light-blue that is actually visible.

* Add support for explicit skips in all reporters

* --allow-running-no-tests also allows all tests to be skipped

* Add docs for SKIP macro, deprecate IEventListener::skipTest

Co-authored-by: Martin Hořeňovský <martin.horenovsky@gmail.com>
2023-01-12 15:01:47 +01:00
..
Approx.tests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
BDD.tests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
Benchmark.tests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
Class.tests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
Compilation.tests.cpp Move SFINAE in decomposer into return type 2022-12-09 00:40:01 +01:00
Condition.tests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
Decomposition.tests.cpp Add test for comparing pointers to NULL with != 2022-11-04 19:24:39 +01:00
EnumToString.tests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
Exception.tests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
Generators.tests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
Matchers.tests.cpp Add MessageMatches matcher for exception (#2570) 2022-12-12 00:40:47 +01:00
MatchersRanges.tests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
Message.tests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
Misc.tests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
Skip.tests.cpp Add new SKIP macro for skipping tests at runtime (#2360) 2023-01-12 15:01:47 +01:00
ToStringByte.tests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
ToStringChrono.tests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
ToStringGeneral.tests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
ToStringOptional.tests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
ToStringPair.tests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
ToStringTuple.tests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
ToStringVariant.tests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
ToStringVector.tests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
ToStringWhich.tests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
Tricky.tests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
VariadicMacros.tests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00