Test Driven C++ with Catch
summary
Explains Catch as a single-header distribution for C++ unit and integration tests, shows a live TDD session building a ring buffer (capacity 4) using compilation-driven steps, sections to isolate logical assertions and sections and BDD-style scenario macros (Given/When/Then), demonstrates catch_config_main linking cost and slow compile when included everywhere, shows test output that prints expanded LHS/RHS expressions, notes no built‑in mocking or threading support (C++03 target with optional C++11 extensions).
AI-written summary · about
chapters (18)
- 0:00Introduction
- 1:25What is TDD
- 3:00Why do we write code
- 4:57How to verify code
- 10:05Demo
- 16:50Second Demo
- 26:30Test Case Macro
- 35:15Buffer Size
- 36:55Multiple Sections
- 38:25Testing
- 40:25Overload
- 41:25Multiple Values
- 42:45Unconditional Increment
- 45:10Alternate Macros
- 47:45Naming
- 49:25Test Name
- 50:52Converting Types to Strings
- 52:41Elephant in the Room
related talks
01h 07mTestdriven C++ with Catch
45mModern C++ testing with Catch2
55m“Modern C++ Testing with Catch2”
01h 02mTest Driven C++
01h 03mBack to Basics: Testing in C++
59mC++ Unit testing - the good, the bad & the ugly
01h 22mTest-Driven Development of C++ Embedded and System-Level Software
01h 01mBack to Basics: Test-driven Development
