self-testing code
nounUK /ˌself ˈtestɪŋ kəʊd/
US /ˌself ˈtestɪŋ koʊd/
Code that can check by itself to see if it works right.
The team wrote self-testing code so bugs get caught early.
OTHER MEANINGS
2. Code that runs its own checks when it starts up.
The device uses self-testing code to confirm its sensors work.
3. A programming practice where tests are written alongside the code.
Self-testing code is a core idea in test-driven development.
4. Software that reports its own errors without a person checking.
Thanks to self-testing code, the server flagged the broken module on its own.