code coverage

A measurement of which parts of your code ran while the tests ran.

In more detail

Coverage measures exercise, not examination: a line counts as covered even if no assertion ever looked at its result. The useful part of a report is the list of missing lines, which shows code the suite has never run. Treat it as a diagnostic for deciding what to test next, never as a target.

Related terms

Taught in

References

Certification courses