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
Morphology
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.