Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Determine which lines of code are not covered based on instanbul coverageMap

License

Notifications You must be signed in to change notification settings

joeyjiron06/istanbul-gh-pr-uncovered

Repository files navigation

istanbul-gh-pr-uncovered

Build Status

Uses the istanbul coverageMap and get's the uncovered lines from the current pull request related to the last commit that this process it running on.

Installation

npm install istanbul-gh-pr-uncovered --save

Usage

const fetchUncoveredPrFiles =  require('istanbul-gh-pr-uncovered');

const uncoveredFiles = await fetchUncoveredPrFiles({
  coverageMap: jestTestResults.coverageMap,

  // appId of the installed app, in order to fetch github PR info
  appId,

  // the private key generated for the installed app
  privateKey
});

console.log(uncoveredFiles);

About

Determine which lines of code are not covered based on instanbul coverageMap

Resources

License

Stars

Watchers

Forks

Packages

No packages published