code under test

The particular function, class or module a test is exercising and making claims about.

In more detail

Everything else in a test exists to set up, call or observe this one piece of code. Keeping it clearly identified is what makes a test readable. Never replace part of the code under test with a test double, or the test ends up checking its own assumptions instead of your code.

Related terms

Taught in

References