Debian Codegraph @

3rdparty/catch2/docs/deprecations.md

raw symbols SCIP
1 <a id="top"></a>
2 # Deprecations and incoming changes
3
4 This page documents current deprecations and upcoming planned changes
5 inside Catch2. The difference between these is that a deprecated feature
6 will be removed, while a planned change to a feature means that the
7 feature will behave differently, but will still be present. Obviously,
8 either of these is a breaking change, and thus will not happen until
9 at least the next major release.
10
11
12 ### `ParseAndAddCatchTests.cmake`
13
14 The CMake/CTest integration using `ParseAndAddCatchTests.cmake` is deprecated,
15 as it can be replaced by `Catch.cmake` that provides the function
16 `catch_discover_tests` to get tests directly from a CMake target via the
17 command line interface instead of parsing C++ code with regular expressions.
18
19
20 ### `CATCH_CONFIG_BAZEL_SUPPORT`
21
22 Catch2 supports writing the Bazel JUnit XML output file when it is aware
23 that is within a bazel testing environment. Originally there was no way
24 to accurately probe the environment for this information so the flag
25 `CATCH_CONFIG_BAZEL_SUPPORT` was added. This now deprecated. Bazel has now had a change
26 where it will export `BAZEL_TEST=1` for purposes like the above. Catch2
27 will now instead inspect the environment instead of relying on build configuration.
28
29 ### `IEventLister::skipTest( TestCaseInfo const& testInfo )`
30
31 This event (including implementations in derived classes such as `ReporterBase`)
32 is deprecated and will be removed in the next major release. It is currently
33 invoked for all test cases that are not going to be executed due to the test run
34 being aborted (when using `--abort` or `--abortx`). It is however
35 **NOT** invoked for test cases that are [explicitly skipped using the `SKIP`
36 macro](skipping-passing-failing.md#top).
37
38 ---
39
40 [Home](Readme.md#top)