~/talk

Back to Basics: Testing in C++

Talkat CppCon 2023 · on Thursday, 2023-10-05· at 09:00· Cottonwood 2/3, 6700 North Gaylord Rockies Boulevard· [testing]
slides:none on file

Focuses on concrete testing choices: unit tests sit at the bottom of the testing pyramid and must be fast, deterministic and isolated; Michael Fe’s rules (no DB, network, files) guide what is or isn’t a unit test. Demonstrates Catch2 and Google Test side‑by‑side (REQUIRE vs ASSERT_EQ, sections vs fixtures), builds left‑pad and MRU examples, shows a failing run that prints expression plus file/line. Notes 84 C++ frameworks on Wikipedia, Google Test is top, Catch2 second, 34% wrote no tests in 2020, and practices a Red‑Green‑Refactor TDD cycle.

AI-written summary · about

  1. 0:00Introduction
  2. 2:27What is a test?
  3. 12:21Use a test framework?
  4. 18:02C++ test frameworks
  5. 23:37Unit tests with examples
  6. 31:01Unit testing best practices
  7. 40:10Stateful code testing
  8. 46:10Testing challenges
  9. 51:06Next steps and TDD
  10. 55:39SOLID design principles
  11. 57:48Resources and closing
  12. 1:00:16Q&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.