Skip to main content
mocking

mocking

8 7.5
Using fake parts in software tests to copy real components
  • noun
  • /ˈmɑːkɪŋ/
  • Specialized
translation icon : simulación
  • Effective mocking can help ensure that tests run independently from other modules and external services.
  • self-mocking

Examples

  • OK, this is just to get us to a point where we can start mocking stuff up.

  • "Shall I hold our launch?" She held his gaze, knowing he wouldn't appreciate the mocking faces Oswald was making.

    Fiction book (1999)
  • Careful observation of his style reveals eight strategies for testing, mocking, and challenging habits of mind that can unnecessarily constrict scholarly inquiry.

    Academic text (1998)
  • During the automated testing phase, developers used mocking to simulate real components without relying on external systems.

  • The team employed mocking to create mock objects, allowing them to test their software in isolation.

Synonyms

stubbing
vsmocking
  • Specialized
7.9

Replacing part of a program with a simple fake to test other code

creates more complete simulated components that imitate real modules in tests

Compounds

A small songbird that copies the songs and calls of other birds

How Realistic

emulation
  • Specialized
3 6.7
simulation
  • Specialized
199 4.7
mocking
  • Specialized
8 7.5
stub
  • Specialized
1 7.8
to dummy
  • Jargon
3 7.6
fake
833 1.8

Surface Forms

mocking singular
mockings plural

Morphology

mocking = mock (transparent) = mock + ing

A gerund/nominalization of 'mock' denoting the practice or act (in this case the software practice of using mock objects); morphologically regular though domain-specific.

Etymology

The word mocking in software comes from mock, used as a 'fake' or 'imitation' of the real thing, just like a mock-up of a product. That's why in testing 'mocking' means making fake parts so the code can be tested without the real systems.