Code Coverage
A metric showing which parts of the source code were exercised by a test run, expressed as a percentage.
What is Code Coverage?
What is Code Coverage?
Code coverage measures how much of your codebase—lines, branches, or functions—was actually executed while the tests ran. It is a useful signal for finding untested areas and a common threshold in CI gates, but high coverage alone does not guarantee quality: code can be executed without being meaningfully verified. Coverage is best read alongside assertion quality and real-world flow coverage. End-to-end tests that walk critical user journeys often reveal gaps that unit-level coverage numbers hide.