Send the coverage difference back to the github on each pull requests
- Report coverage diff on every pull request
- Update GitHub commit status
- Monorepo ready
- Supported services
npm install -g coverage-diff-back
Or you can use coverage-diff-back with
store_artifacts step after your test step.
And then, set environment variables.
CIRCLECI_TOKEN: A CircleCI personal API token
GITHUB_TOKEN: A Github personal access token with
Optional: Turn on the
Only build pull requests in Advanced Settings (if you needed).
Working example is here.
Usage: coverage-diff-back [options] Options: --help Show help [boolean] --version Show version number [boolean] --coverage-glob A glob pattern to specify path of coverage-summary.json [string] [default: "**/coverage/coverage-summary.json"] --from Compare branch [string] [default: "master"] --status Update commit status [boolean] Examples: coverage-diff-back --no-status # Doesn't update commit status coverage-diff-back --from develop # Compare between develop and current pull request
- Fork this repository
- Write your code
- Run tests
- Create pull request to master branch
git clone firstname.lastname@example.org:Leko/coverage-diff-back.git cd coverage-diff-back npm i
This package under MIT license.