Software Engineering vocabulary · Testing

Mock

Meaning in software engineering, with examples

/mɑːk/nounCommon term

In software engineering, mock means: A fake version of a real object or service used in tests, so you can control its behavior and check how your code uses it. Also a verb: to mock a service.

In Turkish: sahte nesne, taklit nesne

How it is used

Developers create mocks for databases, payment providers and external APIs so that unit tests run fast and without a network. Common phrases: 'mock the API', 'mock out the clock', 'too many mocks'.

Example sentences

  1. We mock the payment provider, so the tests never charge a real card.

  2. This test has so many mocks that it doesn't test anything real.

Common collocations

  • mock a service
  • mock object
  • mock out
  • mock data

More terms: Testing

Practise with graded reading

Reading at the right level is the fastest way to make new words stick. Pick free English books by level: