SpinTheMic
Pro

Explain it in 60 seconds

Mocks, stubs, fakes and spies

Backend Engineering · Testing · Beginner

What are the different kinds of test doubles?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Stub: returns canned answers.
  • Mock: verifies expected interactions.
  • Fake: working lightweight implementation (in-memory repo).
  • Spy: records calls on real/partial object.
  • Dummy: placeholder never used.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics