istanbul-lib-coverage
Data library for istanbul coverage objects
Last updated 4 months ago by coreyfarrell .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install istanbul-lib-coverage 
SYNC missed versions from official npm registry.

istanbul-lib-coverage

Greenkeeper badge Build Status

An API that provides a read-only view of coverage information with the ability to merge and summarize coverage info.

Supersedes object-utils and collector from the v0 istanbul API.

See the docs for the full API.

var libCoverage = require('istanbul-lib-coverage');
var map = libCoverage.createCoverageMap(globalCoverageVar);
var summary = libCoverage.createCoverageSummary();

// merge another coverage map into the one we created
map.merge(otherCoverageMap);

// inspect and summarize all file coverage objects in the map
map.files().forEach(function(f) {
    var fc = map.fileCoverageFor(f),
        s = fc.toSummary();
    summary.merge(s);
});

console.log('Global summary', summary);

Current Tags

  • 3.0.0                                ...           latest (4 months ago)

23 Versions

  • 3.0.0                                ...           4 months ago
  • 3.0.0-alpha.2                                ...           4 months ago
  • 3.0.0-alpha.1                                ...           6 months ago
  • 3.0.0-alpha.0                                ...           10 months ago
  • 2.0.5                                ...           a year ago
  • 2.0.4                                ...           a year ago
  • 2.0.3                                ...           a year ago
  • 2.0.2                                ...           a year ago
  • 1.2.1                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           4 years ago
  • 1.0.0-alpha.4                                ...           4 years ago
  • 1.0.0-alpha.3                                ...           4 years ago
  • 1.0.0-alpha.2                                ...           4 years ago
  • 1.0.0-alpha.1                                ...           4 years ago
  • 1.0.0-alpha.0                                ...           4 years ago
Downloads
Today 5,217
This Week 110,889
This Month 70,632
Last Day 7,526
Last Week 111,151
Last Month 457,107
Dependencies (0)
None
Dev Dependencies (3)
Dependents (128)

Copyright 2014 - 2016 © taobao.org |