Socket
Book a DemoInstallSign in
Socket

coverage-diff-back

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coverage-diff-back

Send the coverage difference back to the github on each pull requests

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

coverage-diff-back

CircleCI

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
Update GitHub commit status Report coverage diff on every pull request

TOC

Supported services

Is there anything you want from these?
Please contribute or create a issue.

Install

npm install -g coverage-diff-back

Or you can use coverage-diff-back with npx without npx install.

npx coverage-diff-back

Usage

Common setup

Please add json-summary to coverage reporters.
If you use jest, please refer here.
Or if you use nyc(istanbul), please refer here.

CI Setup

CircleCI

Please add store_artifacts step after your test step.
And then, set environment variables.

Optional: Turn on the Only build pull requests in Advanced Settings (if you needed).

Working example is here.

Command-line usage

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

Contribution

  • Fork this repository
  • Write your code
  • Run tests
  • Create pull request to master branch

Development

git clone git@github.com:Leko/coverage-diff-back.git
cd coverage-diff-back
npm i

License

This package under MIT license.

Keywords

ci

FAQs

Package last updated on 29 Mar 2019

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.