~/talk

Please don’t mock me

Talkat Assert(js) 2018 · on Thursday, 2018-02-22· [testing, developer-experience]
slides:none on file

Claim: a mocking library’s popularity is irrelevant if teams misuse it. Concrete examples show partial mocks and half‑real/half‑fake dependencies break builds; replacing some but not all collaborators hides bugs. Advice: wrap third‑party libs instead of stubbing them, prefer pure functions, and use London‑style discovery testing to drive design. The author ships test‑double (a Node library), demonstrates a tiny keynote‑generator prototype built by tests, and shows those patterns produce small, maintainable code.

AI-written summary · about

  1. 0:00Start
  2. 1:41Uses a mocking library
  3. 2:35Unit Test
  4. 26:56Mocking in tests of existing code
  5. 41:08London-school Test-Driven Development
  6. 41:31Discovery Testing
~/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.