~/talk

The Unit Tests Strike Back: Testing the Hard Parts

Talkat CppCon 2021 · on Friday, 2021-10-29· at 10:30· online· [testing]
links:none on file
slides:none on file

Unit testing often breaks down into a plan A that vaporizes and a sequence of pragmatic fallbacks: use mocks or dependency injection, make external services ubiquitous (example zookeeper run locally), gather failure stats like run five thousand times and fail three, or instrument with sanitizers and beef up acceptance tests. For hard legacy cases options include friend classes, changing access or the extreme define private public hack to link against binaries. A half million line Fortran dependency pushes teams toward acceptance testing and sanitizers rather than pure unit tests.

AI-written summary · about

  1. 0:00Introduction and context
  2. 1:04Defining unit test goals
  3. 2:54The reality of difficult testing
  4. 8:53Managing flaky tests
  5. 23:42Dealing with problematic code
  6. 37:39Plan omega and conclusion
  7. 41:41Questions and answers
~/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.