v3.4.0
版本发布时间: 2023-07-13 19:58:57
catchorg/Catch2最新发布版本:v3.7.1(2024-09-17 16:50:49)
3.4.0
Improvements
-
VectorEquals
supports elements that provide only==
and not!=
(#2648) - Catch2 supports compiling with IAR compiler (#2651)
- Various small internal performance improvements
- Various small internal compilation time improvements
- XMLReporter now reports location info for INFO and WARN (#1251)
- This bumps up the xml format version to 3
- Documented that
SKIP
in generator constructor can be used to handle empty generator (#1593) - Added experimental static analysis support to
TEST_CASE
andSECTION
macros (#2681)- The two macros are redefined in a way that helps the SA tools reason about the possible paths through a test case with sections.
- The support is controlled by the
CATCH_CONFIG_EXPERIMENTAL_STATIC_ANALYSIS_SUPPORT
option and autodetects clang-tidy and Coverity.
-
*_THROWS
,*_THROWS_AS
, etc now suppress warning coming from__attribute__((warn_unused_result))
on GCC (#2691)- Unlike plain
[[nodiscard]]
, this warning is not silenced by void cast. WTF GCC?
- Unlike plain
Fixes
- Fixed
assertionStarting
events being sent after the expr is evaluated (#2678) - Errors in
TEST_CASE
tags are now reported nicely (#2650)
Miscellaneous
- Bunch of improvements to
catch_discover_tests
- Added DISCOVERY_MODE option, so the discovery can happen either post build or pre-run.
- Fixed handling of semicolons and backslashes in test names (#2674, #2676)
- meson build can disable building tests (#2693)
- meson build properly sets meson version 0.54.1 as the minimal supported version (#2688)
1、 catch_amalgamated.cpp 373.08KB
2、 catch_amalgamated.cpp.asc 833B
3、 catch_amalgamated.hpp 476.55KB
4、 catch_amalgamated.hpp.asc 833B