Skip to content

EasyConceptTesting and quality

What is the difference between a mock and a stub?

What a good answer covers

A stub returns canned answers to calls, while a mock also verifies how it was called. Overusing mocks couples tests to implementation details.

More on Testing and quality

Flashcards for this topic