Skip to main content
to mock

to mock

3 4.9
Replace a real part with a simple stand-in during tests
  • verb
  • /mɑk/
  • Specialized
translation icon : simular
  • To test the software effectively, developers often mock the database to create controlled environments.

Examples

  • Before the launch, the team will mock the user interface to gather feedback on its design.

  • - Then it's okay if we mock it.

  • And I'm having Graphics mock something up to show it visually.

  • Below, I've mocked up a "screenshot" of what that sort of display could look like, assuming it's possible.

    Blog text (17)
  • But the type system does just as well in exposing errors that are hard to test, either because they show up only in odd corner cases that are easy to miss in testing, or because they show up in complex systems that are difficult to mock up and exercise exhaustively.

    Academic text (2011)
  • During the testing phase, we can mock the API to simulate different responses and ensure reliability.

Synonyms

to simulate
vsto mock
  • Specialized
85 5.4

Make a model of something to test or study it

is a controlled stand-in used in testing to reproduce component behaviour
to emulate
vsto mock
  • Specialized
8 7.0

To make a program or device act like another machine, for example an old game console

is a testing stand-in that replaces behaviour rather than fully reproducing systems
to stub out
vsto mock
  • Specialized
7.4

To replace a function in a program with a simple fake version for testing

is a controlled stand-in that simulates behaviour not just a simple temporary version
to stub
vsto mock
  • Specialized
8.4

To make a simple fake version of a program part for testing

is a controlled stand-in that simulates behaviour rather than minimal placeholder code

Phrasal Verbs

to mock up
  • Specialized
2 5.4

To make a simple model of something to test or show it

Compounds

mock-up
  • Specialized
10 4.8

A full size model of something to test or show it

3 4.3

A sweater or top with a short tight collar that stands up and does not fold over

mock turtle
  • Archaic
1 8.6

A soup like turtle soup made without turtle meat

1 8.2

A soup made from a calf's head or other meat that copies turtle soup

mock azalia
  • South African
9.9

A shrub with a thick, fleshy stem and bright pink and white flowers that bloom after the leaves fall

A bush or small tree with white, sweet smelling flowers grown in gardens

A short, close-fitting collar that stands up but does not fold over

A short soft collar that stands up around the neck and is sewn to the top

A bush that stays green all year with small white flowers and olive-like fruits

mock sun
  • Specialized
9.9

A bright spot beside the sun when ice crystals bend sunlight

A high collar that stands up and is sewn to the top edge of the shirt

mock-heroic
  • Literature
9.3

A poem or story that copies heroic style to make it seem funny

How Realistic

to emulate
  • Specialized
8 7.0
to simulate
  • Specialized
85 5.4
to mock
  • Specialized
3 4.9
to stub
  • Specialized
8.4

Surface Forms

mock infinitive
mocked past
mocked past participle
mocking present participle
mocks third person singular

Etymology

In computing, to mock something borrows the idea of imitation from the old French moquer 'to laugh at', but here it shifted to mean 'to pretend' or 'copy'. So to mock an API is to make a pretend version you can control during tests.