Test Doubles: Mocks, Stubs and Dependency Injection in Go
Hey tester! 👋
Are your tests slow, brittle, and dependent on external services? Every time the database is unavailable, half your tests fail?
Test Doubles are your salvation. Instead of real dependencies, use fakes: mocks, stubs, fakes.
Let’s break down how to properly isolate code for testing and write fast, reliable unit tests in Go 🚀
Continue reading