v3.5.0
版本发布时间: 2023-12-11 07:57:56
catchorg/Catch2最新发布版本:v3.7.1(2024-09-17 16:50:49)
Improvements
- Introduced
CATCH_CONFIG_PREFIX_MESSAGES
to prefix only logging macros (#2544)- This means
INFO
,UNSCOPED_INFO
,WARN
andCAPTURE
.
- This means
- Section hints in static analysis mode are now
const
- This prevents Clang-Tidy from complaining about
misc-const-correctness
.
- This prevents Clang-Tidy from complaining about
-
from_range
generator supports C arrays and ranges that require ADL (#2737) - Stringification support for
std::optional
now also includesstd::nullopt
(#2740) - The Console reporter flushes output after writing benchmark runtime estimate.
- This means that you can immediately see for how long the benchmark is expected to run.
- Added workaround to enable compilation with ICC 19.1 (#2551, #2766)
- Compiling Catch2 for XBox should work out of the box (#2772)
- Catch2 should automatically disable getenv when compiled for XBox.
- Compiling Catch2 with exceptions disabled no longer triggers
Wunused-function
(#2726) -
random
Generators for integral types are now reproducible across different platforms- Unlike
<random>
, Catch2's generators also support 1 byte integral types (char
,bool
, ...)
- Unlike
-
random
Generators forfloat
anddouble
are now reproducible across different platforms-
long double
varies across different platforms too much to be reproducible - This guarantee applies only to platforms with IEEE 754 floats.
-
Fixes
- UDL declaration inside Catch2 are now strictly conforming to the standard
-
operator "" _a
is UB,operator ""_a
is fine. Seriously.
-
- Fixed
CAPTURE
tests failing to compile in C++23 mode (#2744) - Fixed missing include in
catch_message.hpp
(#2758) - Fixed
CHECK_ELSE
suppressing failure from uncaught exceptions(#2723)
Miscellaneous
- The documentation for specifying which tests to run through commandline has been completely rewritten (#2738)
- Fixed installation when building Catch2 with meson (#2722, #2742)
- Fixed
catch_discover_tests
when using custom reporter andPRE_TEST
discovery mode (#2747) -
catch_discover_tests
supports multi-config CMake generator inPRE_TEST
discovery mode (#2739, #2746)
1、 catch_amalgamated.cpp 398.41KB
2、 catch_amalgamated.cpp.asc 833B
3、 catch_amalgamated.hpp 496.25KB
4、 catch_amalgamated.hpp.asc 833B