Back to the glossary
Process and automation
Test coverage
Test coverage measures what share of a system is checked by tests, for example lines of code, branches or requirements.
Also known as: code coverage
Types of coverage
- Statement coverage: which lines of code were executed?
- Branch coverage: was every branch taken in both directions?
- MC/DC: has each condition been shown to affect the outcome? Required in aviation (DO-178C), for example, and for high safety levels under ISO 26262.
- Requirements coverage: is every requirement checked by at least one test?
What coverage tells you, and what it doesn’t
Low coverage reliably shows where tests are missing. High coverage, on the other hand, does not prove good testing: a test can execute code without meaningfully checking the result. Coverage is a tool for orientation, not a quality goal in itself.
Using it well
Rather than a blanket percentage target, look at the gaps: which critical paths, error handling or requirements are untested? That is where each new test adds the most.