~/talk

Please Don't Mock Me

Talkat JSConf US 2018 · on Tuesday, 2018-08-21· [testing, developer-experience]
slides:none on file

Argues that popularity of a mocking library doesn’t matter and that after a decade of TDD with mocks most people use them poorly; uses test double/testable to show specific abuses (partial mocks, half-mocked stacks, mocking weird third-party APIs) and prescribes concrete fixes: wrap third-party libs, fake whole dependencies, prefer real values. Demonstrates a working discovery testing workflow that builds a keynote from notes via a sentiment analyzer and slide generator, proving the approach with small passing tests and test double examples rather than abstract advice about mocking libraries.

AI-written summary · about

  1. 0:00Start
  2. 2:20Dependency
  3. 11:54Mocking out 3rd-party code
  4. 15:24Tangling logic and delegation
  5. 20:08Mocking dependencies halfway down the stack
  6. 20:21Expense System
  7. 22:32Mocking in tests of existing code
  8. 24:06Mock dependencies, but pass real values
  9. 25:19Enabling highly- layered designs
  10. 27:02Make small things
  11. 31:42Growing Object Oriented Software Guided by Tests
  12. 36:38Intention-revealing names Discoverable organization
~/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.