MyGit

v3.0.0-preview3

catchorg/Catch2

版本发布时间: 2020-10-08 21:31:37

catchorg/Catch2最新发布版本:v3.7.1(2024-09-17 16:50:49)

Changes compared to preview 2

Changes compared to v2 releases

Catch2 now uses statically compiled library as its distribution model. This also means that to get all of Catch2's functionality in a test file, you have to include multiple headers.

For quick'n'dirty migration, you can replace the old #include <catch2/catch.hpp> with #include <catch2/catch_all.hpp>. This is a (one of) convenience header(s) that brings in all of headers in Catch2. By doing this, you should be able to migrate instantly, but at the cost of (significantly) increased compilation times. You should prefer piecemeal including headers that are actually required by your test code.

The basic set of functionality (TEST_CASE, SECTION, REQUIRE) is in catch2/catch_test_macros.hpp. Matchers are in matchers subfolder, generators in generators subfolder, and so on.

Note that documentation has not yet been updated to account for the new design.

FAQ

(Potentially) Breaking changes

Improvements

Fixes

Other changes

相关地址:原始地址 下载(tar) 下载(zip)

查看:2020-10-08发行的版本