~/talk

C++ Unit testing - the good, the bad & the ugly

Talkat NDC TechTown 2018 · 2018-09-27..09-30· [testing]
slides:none on file

Compares actual tools and practices: uses a bowling-score example to show Google Test (compiled test executable, clear failure messages) versus Catch (single-header, inline assertions and sections for isolated subcases), demonstrates Google Mock’s macro-based, explicit mock classes for faking DB and REST clients, contrasts FakeIt’s automatic mocks and Isolator++’s runtime instrumentation, and calls out deployment/linker pain on Windows, documentation gaps, and when each approach succeeds or creates extra maintenance.

AI-written summary · about

  1. 0:00Introduction
  2. 0:52What is C
  3. 5:22Responsibility
  4. 6:18Writing unit tests
  5. 10:29What is unit testing
  6. 12:58Google Tests
  7. 15:29Unit Testing Framework
  8. 16:35Good and bad news
  9. 19:43Unit testing frameworks
  10. 23:25Google Test
  11. 31:25mocking framework
  12. 32:51mocking frameworks
  13. 34:40mocking in C
  14. 36:36mocking in Google Mach
  15. 44:59multiple assert dilemma
  16. 47:23test fixtures
  17. 49:44how to choose
~/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.