~/talk

Mocking Framworks considered, harmful?!

Talkat ACCU 2018 · 2018-04-11..04-14· [testing, developer-experience]
slides:none on file

Argues that configurable mock DSLs like GoogleMock macro DSL create fragile, hard-to-refactor tests because C++ lacks standard reflection and frameworks rely on macro trickery; demonstrates concrete alternatives: using Mockator refactoring in Cevelop to extract interfaces or template seams, linker/preprocessor as last resorts, and a plain C++ trace-string mock that the IDE generates to record call sequences. Shows that generated plain code compiles and debugs far more easily than macro magic, and warns against mocking not-yet-written components that prematurely fix stateful APIs.

AI-written summary · about

  1. 0:00Introduction
  2. 2:06Mocking frameworks
  3. 3:29Mocks arent stops
  4. 5:40The Order
  5. 8:14Phase Tests
  6. 10:52When should I test
  7. 15:28Testable
  8. 18:51Configurable tests
  9. 22:15Dependency injection
  10. 25:36Gene Mauch
  11. 27:00Michael Feathers
  12. 34:20compiled
  13. 35:32assert
  14. 38:26macros
  15. 40:06plain code
  16. 44:16refactoring
  17. 50:51walking
  18. 57:09design limitations
~/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.