mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-20 12:26:10 +01:00
Link to the v2-v3 migration docs from release notes
This commit is contained in:
parent
e53a75b425
commit
b5dbdc858d
@ -55,19 +55,9 @@
|
|||||||
This also means that to get all of Catch2's functionality in a test file,
|
This also means that to get all of Catch2's functionality in a test file,
|
||||||
you have to include multiple headers.**
|
you have to include multiple headers.**
|
||||||
|
|
||||||
For quick'n'dirty migration, you can replace the old `#include <catch2/catch.hpp>`
|
You probably want to look into the [migration docs](migrate-v2-to-v3.md#top),
|
||||||
with `#include <catch2/catch_all.hpp>`. This is a (one of) convenience
|
which were written to help people coming from v2.x.x versions to the
|
||||||
header(s) that brings in _all_ of headers in Catch2. By doing this,
|
v3 releases.
|
||||||
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
|
### FAQ
|
||||||
|
Loading…
Reference in New Issue
Block a user