Please Don't Mock Me
summary
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
chapters (12)
- 0:00Start
- 2:20Dependency
- 11:54Mocking out 3rd-party code
- 15:24Tangling logic and delegation
- 20:08Mocking dependencies halfway down the stack
- 20:21Expense System
- 22:32Mocking in tests of existing code
- 24:06Mock dependencies, but pass real values
- 25:19Enabling highly- layered designs
- 27:02Make small things
- 31:42Growing Object Oriented Software Guided by Tests
- 36:38Intention-revealing names Discoverable organization
related talks
52mPlease don’t mock me
36mTo Mock or Not to Mock
31mBeyond the Mockery- Why We Should Embrace Testing Without Mocking Frameworks
47mYay! Mocks!
37mBeyond the Mockery: Why We Should Embrace Testing Without Mocking Frameworks
01h 01m“Mocking Frameworks considered harmful”
30mMocks, Stubs, and Spies, Oh My
29m"Testing. Why so serious?"
