Intermediate QA #testing #mocking #collocations

Test Doubles & Mocking

5 exercises on the vocabulary of test doubles — mocks, stubs, spies and fakes, fixtures, set-up and tear-down, and isolating a unit.

Key patterns
  • mock a dependency → replace it with a double
  • stub a response → return canned data
  • spy → record how a call was made
  • set up / tear down → before/after hooks
  • fixture → known starting data; isolate a unit
0 / 5 completed
1 / 5
A developer explains a unit test: "The real payment gateway is slow and costs money, so we ___ it and return a canned response instead."
Which verb is the standard collocation?