Test Coverage - CI/CD Glossary Definition
Test coverage reports the share of code exercised by the test suite, expressed as a percentage per file and for the project as a whole.
Test coverage is the percentage of your code (lines, branches, or functions) that is executed while the test suite runs. It measures how much code the tests reach, not whether the code is correct.
Coverage is collected by instrumenting the code, running the tests, and recording which parts ran. It is a useful signal in CI but a poor goal on its own, since fully covered code can still be wrong.
In CI
Most CI pipelines publish a coverage percentage and can fail the build if it drops below a threshold. Tools like nyc, coverage.py, and jacoco produce the reports.