ToolsIntermediate

Test double

Also known as test doubles

A substitute for a real collaborator used during testing, including dummies, stubs, spies, mocks, and fakes.

In the real world

A fake in-memory repository replaces a database while testing application logic.

Related

Go a little deeper