“Modern C++ Testing with Catch2”
summary
Catch2 rebases Catch on C++11 only, ships as a single-header with CATCH_CONFIG_MAIN or CATCH_CONFIG_RUNNER, and gives expression‑template assertions (REQUIRE/CHECK that print decomposed values), hierarchical Sections, and matchers (REQUIRE_THAT) plus generators (GENERATE) that produce cross‑products and random samples. Clara provides a composable CLI with Opts, there is experimental micro‑benchmarking (Nonius merge planned), -fno‑exceptions support, Windows leak detection, JUnit/TeamCity/TAP reporters, and roadmap items: threading, property‑based testing (shrinking), type‑param tests, and death tests.
AI-written summary · about
chapters (12)
- 0:00Introduction and welcome
- 1:55Cost of bugs in software
- 4:19Why Catch2 was created
- 6:07First Catch2 demo
- 11:47Catch vs Catch2 differences
- 13:56New features in Catch2
- 16:21Matchers in Catch2
- 21:02Command line processor
- 26:42Generators in Catch2
- 32:42Future directions for Catch2
- 36:46Generator test output demo
- 41:11Q&A session
related talks
45mModern C++ testing with Catch2
01h 07mTestdriven C++ with Catch
49mCatching up with Catch2: Changes recent and future
58mTest Driven C++ with Catch
01h 03mBack to Basics: Testing in C++
59mC++ Unit testing - the good, the bad & the ugly
01h 03mClean Test: a modern C++20 testing framework
53mC++ Unit testing - the good, the bad & the ugly
