~/talk

Test Driven C++ with Catch

Talkat CppCon 2015 · 2015-09-21..09-25· [testing]
slides:none on file

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

  1. 0:00Introduction
  2. 1:25What is TDD
  3. 3:00Why do we write code
  4. 4:57How to verify code
  5. 10:05Demo
  6. 16:50Second Demo
  7. 26:30Test Case Macro
  8. 35:15Buffer Size
  9. 36:55Multiple Sections
  10. 38:25Testing
  11. 40:25Overload
  12. 41:25Multiple Values
  13. 42:45Unconditional Increment
  14. 45:10Alternate Macros
  15. 47:45Naming
  16. 49:25Test Name
  17. 50:52Converting Types to Strings
  18. 52:41Elephant in the Room
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.