Test doubles & mocking
Test strategy & feedback
Test doubles & mocking
Test doubles replace dependencies during a check. Dummies, stubs, spies, mocks, and fakes differ in what they let a test control and observe. Choose the simplest double for the behaviour under test.
Resources
Links marked “Amazon affiliate link” open an Amazon product page. As an Amazon Associate I earn from qualifying purchases. About affiliate links
Software Engineering at GoogleBook · Titus Winters, Tom Manshreck, Hyrum Wright · Amazon affiliate link, opens Amazon in a new tabMocks Aren't StubsArticle · Martin Fowler · opens in a new tabUnit Testing Principles, Practices, and PatternsBook · Vladimir Khorikov · Amazon affiliate link, opens Amazon in a new tabISTQB Foundation Level syllabus (CTFL 4.0)Reference · ISTQB · opens in a new tabAgile Testing CondensedBook · Janet Gregory, Lisa Crispin · Amazon affiliate link, opens Amazon in a new tabLessons Learned in Software TestingBook · Cem Kaner, James Bach, Bret Pettichord · Amazon affiliate link, opens Amazon in a new tabGoogle Testing BlogBlog · Google · opens in a new tabMinistry of TestingCourse · Ministry of Testing · opens in a new tab