Catch2
A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.
About this project
What is 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. Test names do not have to be valid identifiers, assertions look like normal C++ boolean expressions, and sections provide a nice and local way to share set-up and tear-down code in tests. Example unit test Example microbenchmark Note that benchmarks are not run by default, so you need to run it explicitly with the [!benchmark] tag. Catch2 v3 has been released! You are on the devel branch, where the v3 version is being developed. v3 brings a bunch of significant…
Technologies
Project health
GitHub
Reviews
Built by
Maintain catchorg/Catch2? Claiming verifies admin access through your GitHub account and gives you control of this listing.