You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@axioscode/diff-cover

Package Overview
Dependencies
Maintainers
8
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@axioscode/diff-cover

Quickly display test coverage of files changed on your git branch

1.0.0
latest
Source
npm
Version published
Weekly downloads
2
-66.67%
Maintainers
8
Weekly downloads
 
Created
Source

diff-cover

Quick n' dirty way to visualize test coverage of files you've changed since your git branch started.

Demonstration of output

Requirements

  • git
  • a *nix with paste
  • a project that is configured to use Jest for testing and coverage reports
  • npm or yarn

Usage

  • Install with npm or yarn:

     yarn add --dev @axioscode/diff-cover
    
  • Run:

     yarn run diff-cover
    

Options

To change the base branch for coverage comparison, set the COVER_BASE environment variable:

COVER_BASE=stable yarn run diff-cover

Keywords

test coverage

FAQs

Package last updated on 13 Apr 2018

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