No Description

Clare Macrae 2dc5a5f402 Prepare to prevent Catch2 v3's tests from being run, and CTest targets from being added, if Catch2 is configured as a sub-project. (#2205) 3 years ago
.conan 3a15433d52 Add support for Components 3 years ago
.github 749d953712 Add Clang 10 + C++17 build to linux CI 3 years ago
CMake 0acb371b92 Fix Wold-style-cast error (#2125) 3 years ago
data 604ededf77 Move artwork/ to data/artwork/ 4 years ago
docs e8cdfdca87 Fix typos in the code base (#2206) 3 years ago
examples e8cdfdca87 Fix typos in the code base (#2206) 3 years ago
extras 04166514fe fixed inconsistent semicolon expansion in catch_discover_tests (Bug #2214) 3 years ago
fuzzing 2454cfffb7 add fuzzer for columns 3 years ago
src e8cdfdca87 Fix typos in the code base (#2206) 3 years ago
tests f1d7a10e06 Remove StringRef::isNullTerminated and StringRef::c_str 3 years ago
third_party 3ceaad7d66 fixing UB 3 years ago
tools 037ddbc75c Fix introduced in version placeholders 3 years ago
.clang-format 273111d1a6 Clang-format configuration added. 3 years ago
.gitattributes b93284716e Update gitattributes 5 years ago
.gitignore 4035beb988 Add a script - buildAndTest.sh 3 years ago
.travis.yml c19b8ec5d7 Remove TravisCI builds subsumed by GitHub Actions builds 3 years ago
BUILD.bazel d05a8e2e24 Add Bazel support for the v3 branch 3 years ago
CMakeLists.txt 2dc5a5f402 Prepare to prevent Catch2 v3's tests from being run, and CTest targets from being added, if Catch2 is configured as a sub-project. (#2205) 3 years ago
CODE_OF_CONDUCT.md dd3867bbcd Create CODE_OF_CONDUCT.md 6 years ago
Doxyfile 130bf835b5 Simple Doxygen file 3 years ago
LICENSE.txt 6a502cc2f5 Renamed licence file, license should now be detected by github 7 years ago
README.md 735f46ed6d Link to the migration docs from main readme and docs/readme 3 years ago
WORKSPACE d05a8e2e24 Add Bazel support for the v3 branch 3 years ago
appveyor.yml 29050daec0 Add Linux and Windows CI builds with surrogate TUs 3 years ago
codecov.yml 967b82231c Sweep out two leftover references to master 3 years ago
conanfile.py 3a15433d52 Add support for Components 3 years ago
mdsnippets.json 8c3970465d Add infrastructure for embedding code samples in docs. 3 years ago

README.md

Catch2 logo

Github Releases Build Status Build Status Code Coverage Try online

Catch2 v3 is being developed!

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.

What's the Catch2?

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.

How to use it

This documentation comprises these three parts:

More