Talk: To Mock or Not to Mock

Are mocks evil? Should we embrace them? What are the trade-offs? What about other test doubles? Those are the topics of this talk...

In this presentation, I talk about trade-offs when using different schools of TDD, different styles of testing and using different kinds of test doubles. I show test- and production-code examples from marmota.app itself and explain why I used the test- and test-double-approach in that example.

Mocks—and other test-doubles—are powerful, but also dangerous tools. You should know the benefits, risks and trade-offs before using them. In this talk, I explain how I traded in those trade-offs.

Download the slides as markdown to show in marmota.app

Or head over to SpeakerDeck to view the presentation as PDF.