I’ll be at the Seattle Software Crafters Meetup on April 25th talking about test-driven development and testing without mocks. This is a hands-on, free event. Don't miss it!
TDD Without Mocks
Are your tests slow and brittle? Do you get a sinking feeling when you need to refactor? Do you worry your unit tests aren’t actually testing anything important? If so, you could benefit from writing tests that don’t use mock objects.
In this session, we’ll do it live. We’ll use test-driven development to build a simple command-line application in Node. Along the way, you’ll learn the core principles of testing without mocks, the tradeoffs, what’s easier, and what’s harder. You’ll leave with a new bag of tricks for your toolkit and you’ll be ready to choose between a mock-based or mock-free approach depending on the needs of your code.
Bring a laptop with Node.js and git installed and come prepared to pair program.