Ensure unit test coverage in Circle CI is increased on every pull request with no external tools
10K+
https://github.com/skluck/circleci-code-coverage-compare
This project provides a way to ensure unit test coverage is increased in every pull request without the need for external tools such as Coveralls.io.
It does this by providing the following functionality:
Parse clover XML output to generate a total unit test code coverage
Based on https://confluence.atlassian.com
Cache this value as a file within Circle CI, using the commit SHA as the key.
If the job is running on non-master:
- Fetch the current commit SHA of the master branch using the GitHub API
- Load from cache the coverage stored for that SHA
- Compare the values, and fail the job if code coverage is not increased.
Content type
Image
Digest
Size
299.9 MB
Last updated
about 8 years ago
docker pull skluck/circleci-required-coverage