Tool Open source

Catch2

Catch2 is an open-source, C++-native unit testing framework for unit tests, test-driven development (TDD), and behavior-driven development (BDD). It uses readable test names, assertions written as ordinary C++ boolean expressions, and sections for localized sharing of setup and teardown code. It also provides simple BDD macros and basic microbenchmarking; benchmarks are opt-in rather than run by default. Catch2 v3 is distributed as a normal library with multiple headers and separately compiled implementation, while the v2.x branch provides the previous major version and C++11 support.

View repository Visit site Mentioned in 1 video ↓

What Catch2 is used for

1 use taken from transcripts — each links to the moment in the video.

  • An open-source C++ unit testing framework that also provides microbenchmarking and BDD macros. It uses readable test names, ordinary C++ expressions for assertions, and sections for localized setup and teardown.

Videos mentioning Catch2

1 in the library.