catch2/tests/ExtraTests
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
..
CMakeLists.txt Add new SKIP macro for skipping tests at runtime (#2360) 2023-01-12 15:01:47 +01:00
ToDo.txt Remove CATCH_CONFIG_DISABLE_MATCHERS 2020-01-25 09:07:36 +01:00
X01-PrefixedMacros.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X02-DisabledMacros.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X03-DisabledExceptions-DefaultHandler.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X04-DisabledExceptions-CustomHandler.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X05-DeferredStaticChecks.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X10-FallbackStringifier.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X11-DisableStringification.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X12-CustomDebugBreakMacro.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X21-PartialTestCaseEvents.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X22-BenchmarksInCumulativeReporter.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X23-CasingInReporterNames.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X24-ListenerStdoutCaptureInMultireporter.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X25-ListenerCanAskForCapturedStdout.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X26-ReporterPreferencesForPassingAssertionsIsRespected.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X27-CapturedStdoutInTestCaseEvents.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X28-ListenersGetEventsBeforeReporters.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X29-CustomArgumentsForReporters.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X30-BazelReporter.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X31-DuplicatedTestCases.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X32-DuplicatedTestCasesDifferentTags.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X33-DuplicatedTestCaseMethods.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X34-DuplicatedTestCaseMethodsDifferentFixtures.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X35-DuplicatedReporterNames.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X90-WindowsHeaderInclusion.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X91-AmalgamatedCatch.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X92-NoTests.cpp Fix references to license file 2022-10-28 11:30:15 +02:00
X93-AllSkipped.cpp Add new SKIP macro for skipping tests at runtime (#2360) 2023-01-12 15:01:47 +01:00