mock out

verb

To replace (source code or other software elements) with a stub that exhibits the desired behaviour, typically for use in automated testing.

Meanings

verbmock out (third-person singular simple present mocks out, present participle mocking out, simple past and past participle mocked out)

present singular third person mocks out · participle present mocking out · participle past mocked out · past mocked out

  1. transitivecomputingTo replace (source code or other software elements) with a stub that exhibits the desired behaviour, typically for use in automated testing.

    Now that we know we have mocked out the objects and verified that the method we expected was called, we are ready to write a unit test.

    2011, Scott Millett, Jerrel Blankenship, Matthew Bussa, Pro Agile .NET Development with SCRUM (page B-18)
Cite this entry
APA

mock out. (n.d.). In WatkinsX Dictionary. Retrieved November 4, 2026, from https://dictionary.watkinsx.com/word/mock%20out

MLA

“mock out.” WatkinsX Dictionary, https://dictionary.watkinsx.com/word/mock%20out. Accessed November 4, 2026.

Chicago

WatkinsX Dictionary, s.v. “mock out,” accessed November 4, 2026, https://dictionary.watkinsx.com/word/mock%20out.

Source: mock out on Wiktionary, CC BY-SA 4.0.