3.2.0
Improvements
- Catch2 now compiles on PlayStation (#2562)
- Added
CATCH_CONFIG_GETENV
compile-time toggle (#2562)- This toggle guards whether Catch2 calls
std::getenv
when reading env variables
- This toggle guards whether Catch2 calls
- Added support for more Bazel test environment variables
- Bunch of small tweaks and improvements in reporters
- Added support for asserting on types that can only be compared with literal 0 (#2555)
- A canonical example is C++20's
std::*_ordering
types, which cannot be compared with anint
variable, only0
- The support extends to any type with this property, not just the ones in stdlib
- This change imposes 2-3% slowdown on compiling files that are heavy on
REQUIRE
and friends - This required significant rewrite of decomposition, there might be bugs
- A canonical example is C++20's
- Simplified internals of matcher related macros
- This provides about ~2% speed up compiling files that are heavy on
REQUIRE_THAT
and friends
- This provides about ~2% speed up compiling files that are heavy on
Fixes
- Cleaned out some warnings and static analysis issues
- Fixed serialization of test filters so the output roundtrips
- This means that e.g.
./tests/SelfTest "aaa bbb", [approx]
outputsFilters: "aaa bbb",[approx]
- This means that e.g.
Miscellaneous
- Catch2's build no longer leaks
-ffile-prefix-map
setting to dependees (#2533)