Skip to content

Where stubs live

The test double family has five members; the stub is the one that only provides input.

graph TD
  TD[Test Double] --> D[Dummy: never used]
  TD --> S[Stub: canned answers]
  TD --> SP[Spy: records calls]
  TD --> M[Mock: asserts expectations]
  TD --> F[Fake: working shortcut]