Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

compare-coverage-to-main

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compare-coverage-to-main

Compares the current json coverage file to that of the latest release

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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 <path to coverage file> -o <org> -r <repo> -p <pull request id>

  options:
    -h, --help                      show help and usage
    -v, --version                   show version
    -f, --coverage-filepath <path>  path to new coverage summary
    -d, --dry-run                   if true, does not post comment to PR
    -o, --owner <string>            the repository owner
    -p, --pr-id <number>            the PR id
    -r, --repo <repository name>    the repository name

Authors

  • Evan Lucas <evanlucas@me.com>

FAQs

Package last updated on 30 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc