Testing Strategy
Test Doubles: Mocks, Stubs, Spies, Fakes, and Dummies Explained
Everyone calls them mocks. They're not all mocks. Dummy, Stub, Spy, Mock, Fake — these five types of test doubles serve different purposes, and using the wrong one produces tests that either verify nothing or are so tightly coupled to implementation that they break every refactor. Key Takeaways "