Yuri D'Elia ae17cef676 Update Catch2 v3.1.1 | il y a 2 ans | |
---|---|---|
.. | ||
.conan | il y a 2 ans | |
.github | il y a 2 ans | |
CMake | il y a 2 ans | |
data | il y a 2 ans | |
docs | il y a 2 ans | |
examples | il y a 2 ans | |
extras | il y a 2 ans | |
fuzzing | il y a 2 ans | |
src | il y a 2 ans | |
tests | il y a 2 ans | |
third_party | il y a 2 ans | |
tools | il y a 2 ans | |
.bazelrc | il y a 2 ans | |
.clang-format | il y a 2 ans | |
.gitattributes | il y a 2 ans | |
.gitignore | il y a 2 ans | |
.gitrepo | il y a 2 ans | |
BUILD.bazel | il y a 2 ans | |
CMakeLists.txt | il y a 2 ans | |
CMakePresets.json | il y a 2 ans | |
CODE_OF_CONDUCT.md | il y a 2 ans | |
Doxyfile | il y a 2 ans | |
LICENSE.txt | il y a 2 ans | |
README.md | il y a 2 ans | |
SECURITY.md | il y a 2 ans | |
WORKSPACE.bazel | il y a 2 ans | |
appveyor.yml | il y a 2 ans | |
codecov.yml | il y a 2 ans | |
conanfile.py | il y a 2 ans | |
mdsnippets.json | il y a 2 ans | |
meson.build | il y a 2 ans |
Catch2 is mainly a unit testing framework for C++, but it also provides basic micro-benchmarking features, and simple BDD macros.
Catch2's main advantage is that using it is both simple and natural. Tests autoregister themselves and do not have to be named with valid identifiers, assertions look like normal C++ code, and sections provide a nice way to share set-up and tear-down code in tests.
You are on the devel
branch, where the next major version, v3, of
Catch2 is being developed. As it is a significant rework, you will
find that parts of this documentation are likely still stuck on v2.
For stable (and documentation-matching) version of Catch2, go to the
v2.x
branch.
For migrating from the v2 releases to v3, you should look at our documentation. It provides a simple guidelines on getting started, and collects most common migration problems.
This documentation comprises these three parts: