~/talk

"It's A Bug Hunt" - Armor Plate Your Unit Tests in Cpp

Talkat CppCon 2022 · 2022-09-11..09-16· [testing]
links:none on file
slides:none on file

Argues that unit tests must be measurable tools: maximize accuracy and precision by choosing cases via equivalence partitioning, checking boundaries (the int_min vs int_max asymmetry example) and adding an explicit test for int_min or throwing std::domain_error. Recommends concrete tools and practices: use a real framework (Google Test), fuzzing and Matlab prototypes for validation, CI commits that show a failing test then a fix, and weigh mocks vs real components to trade off precision for accuracy.

AI-written summary · about

  1. 0:00Unit testing introduction
  2. 1:05Why unit tests must catch bugs
  3. 3:55Aliens movie bug hunt lessons
  4. 9:34Accuracy and precision in tests
  5. 13:50Maximizing test accuracy
  6. 27:17Equivalence partitioning complex functions
  7. 31:50Ensuring test correctness
  8. 37:25Improving test precision
  9. 41:42Avoiding red herrings
  10. 47:55Handling contradictory results
  11. 51:04Armor plate unit tests
  12. 58:53Q&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.