Verification · Testing · Unit and integration tests
Coverage gate
Fail when coverage of changed lines drops below a threshold.
How to build it
- Measure line coverage for the files changed in the pull request.
- Set a minimum percentage for the changed lines and fail the job below it.
- Upload the coverage report as a CI artifact for review.
Signals in a repository
- A coverage threshold setting in the test config, such as fail_under or coverageThreshold.
- A CI step that compares coverage on changed lines to a minimum.
- A coverage report uploaded as a CI artifact or to a coverage service.
In practice
No scanned repository runs a tool for this check. The steps above are the only guidance.