~/talk

Back to Basics: Unit Testing in C++

Talkat CppCon 2024 · on Monday, 2024-09-16· at 11:00· Maple 3/4/5, 6700 North Gaylord Rockies Boulevard· [testing]
links:none on file
slides:none on file

Defines unit tests as small standalone executables that live with the code, shows concrete examples: an absolute value function, catching INT_MIN overflow handling by adding a domain_error path, and using the Catch2 framework to get clear failing output instead of halting on first assertion. Argues tests are the first defense layer, contrasts black‑box behavior tests with white‑box friends for internals, cites a running suite of 36,000 combinator-generated tests as practical proof.

AI-written summary · about

  1. 0:00Unit testing in C++ intro
  2. 4:15Why unit testing matters
  3. 13:51Writing tests with Catch2
  4. 21:54Testing code thoroughly
  5. 32:13Good unit test code
  6. 41:11White vs black box testing
  7. 48:17Designing testable software
  8. 52:32Test driven development
  9. 57:06Good process & takeaways
  10. 1:00:18Q&A
~/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.