Skip to main content
mockable

mockable

7.9
Allows testing using a simple fake part instead of the real one
  • adjective
  • /ˈmɑːkəbl/
  • Specialized
: mockeable
  • By making the code mockable, the team ensured that unit tests could be executed independently of external systems.

Examples

  • His approach to testing made the functions mockable, which simplified the debugging process significantly.

  • Well, it is mockable.

    Blog text (12)
  • The software was designed to be mockable, allowing developers to run tests without the need for the actual components.

Surface Forms

mockable positive
mockabler comparative
mockablest superlative

Morphology

mockable = mock (semi-transparent) = mock + able

Formed from 'mock' + '-able', but the software-testing sense relies on a technical extension of 'mock' (meaning 'simulate') that may not be known to average learners.

Etymology

Mockable comes from the word mock meaning 'to copy or pretend' and the ending -able meaning 'able'. In software a 'mock' is a pretend thing used in tests, so mockable means 'able to be replaced by a pretend thing' which makes testing easier.