~/talk

Fakes over Mocks: Shift your paradigm and identify monolithic code

Talkat droidcon New York 2022 · 2022-09-01..09-02· [testing]
links:none on file
slides:none on file

Company moves from heavy mocking to reusable fakes, replacing many mockito/mocktail uses and revealing hidden SRP violations: codebase shows 647 mocks declared before the shift. Engineering builds the charlatan package to fake HTTP clients and creates shared fakes for plugins and native boundaries, so tests exercise real behavior across network and platform. Teams run broader widget-level tests and full-feature flows using fakes for network and native boundaries, catch monolithic services, split responsibilities, and reduce brittle white-box verification.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:58What are test doubles
  3. 4:24Mocks vs spies vs fakes
  4. 6:07Betterment’s testing evolution
  5. 8:57Over-reliance on mocks
  6. 11:44Hidden SRP violations
  7. 14:31Testing paradigm shift
  8. 16:39When mocks are still useful
  9. 18:04Where fakes fit now
  10. 20:29Path forward with fakes
  11. 21:55Testing beyond unit level
  12. 24:03Next steps and conclusion
~/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.