https://github.com/logdna/compare-coverage-to-main
https://github.com/logdna/compare-coverage-to-main
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/logdna/compare-coverage-to-main
- Owner: logdna
- License: mit
- Created: 2021-04-29T17:25:25.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-06-23T19:18:16.000Z (about 3 years ago)
- Last Synced: 2025-06-01T14:07:12.178Z (about 1 year ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 0
- Watchers: 10
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## compare-coverage-to-main
> Compares the current json coverage file to that of the latest release and
> provides a comment on pull requests with that information.
### What this tool does
* Fetches the latest release for the repository and pulls down the `coverage-summary.json` (Must be from the json-summary coverage reporter in istanbul)
* Compares it to the contents of the filepath passed in the `--coverage` flag.
* Posts a comment on the associated pull request
### Usage
```
compare-coverage-to-main - Tool to compare coverage for a PR with the main branch
usage: compare-coverage-to-main -f -o -r -p
options:
-h, --help show help and usage
-v, --version show version
-f, --coverage-filepath path to new coverage summary
-d, --dry-run if true, does not post comment to PR
-o, --owner the repository owner
-p, --pr-id the PR id
-r, --repo the repository name
```
## Authors
* [**Evan Lucas**](mailto:evanlucas@me.com) <evanlucas@me.com>