Quickly display test coverage of files changed on your git branch


stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
10Jul 6, 2018Apr 13, 2018Minified + gzip package size for @axioscode/diff-cover in KB



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

Demonstration of output


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


  1. Install with npm or yarn:

     yarn add --dev @axioscode/diff-cover
  2. Run:

     yarn run diff-cover


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

COVER_BASE=stable yarn run diff-cover

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.