istanbul-lib-report
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/istanbul-lib-report package

3.0.1 • Public • Published

istanbul-lib-report

Greenkeeper badge Build Status

Core reporting utilities for istanbul.

Example usage

const libReport = require('istanbul-lib-report');
const reports = require('istanbul-reports');

// coverageMap, for instance, obtained from istanbul-lib-coverage
const coverageMap;

const configWatermarks = {
  statements: [50, 80],
  functions: [50, 80],
  branches: [50, 80],
  lines: [50, 80]
};

// create a context for report generation
const context = libReport.createContext({
  dir: 'report/output/dir',
  // The summarizer to default to (may be overridden by some reports)
  // values can be nested/flat/pkg. Defaults to 'pkg'
  defaultSummarizer: 'nested',
  watermarks: configWatermarks,
  coverageMap,
})

// create an instance of the relevant report class, passing the
// report name e.g. json/html/html-spa/text
const report = reports.create('json', {
  skipEmpty: configSkipEmpty,
  skipFull: configSkipFull
})

// call execute to synchronously create and write the report to disk
report.execute(context)

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.0.113,445,705latest

Version History

VersionDownloads (Last 7 Days)Published
3.0.113,445,705
3.0.04,377,043
3.0.0-alpha.24
3.0.0-alpha.133
3.0.0-alpha.00
2.0.8795,118
2.0.71,461
2.0.657
2.0.512
2.0.419,644
2.0.328
2.0.22,965
1.1.5177,415
2.0.1170
2.0.01
1.1.418,563
1.1.34,709
1.1.23,711
1.1.15,801
1.1.0422
1.0.0628
1.0.0-alpha.31,067
1.0.0-alpha.21
1.0.0-alpha.10
1.0.0-alpha.00

Package Sidebar

Install

npm i istanbul-lib-report

Weekly Downloads

13,676,401

Version

3.0.1

License

BSD-3-Clause

Unpacked Size

37.6 kB

Total Files

13

Last publish

Collaborators

  • gotwarlost
  • bcoe
  • coreyfarrell
  • oss-bot