v8-coverage-merge
merge together two V8 coverage reports
Last updated 6 years ago by bcoe .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ npm install v8-coverage-merge 
SYNC missed versions from official npm registry.

v8-coverage-merge

Build Status Conventional Commits

Merges together the V8 inspector format JSON output for duplicate scripts:

const merge = require('v8-coverage-merge')
const merged = merge(
  {
    scriptId: '70',
    url: '/Users/benjamincoe/oss/c8/test/fixtures/timeout.js',
    functions: [
      {
        functionName: 'bar',
        isBlockCoverage: true,
        ranges: [
          {
            startOffset: 30,
            endOffset: 221,
            count: 1
          }
        ]
      }
    ]
  },
  {
    scriptId: '71',
    url: '/Users/benjamincoe/oss/c8/test/fixtures/timeout.js',
    functions: [
      {
        functionName: 'foo',
        isBlockCoverage: true,
        ranges: [
          {
            startOffset: 70,
            endOffset: 400,
            count: 2
          }
        ]
      }
    ]
  }
)

Merging is necessary if coverage is output from multiple subprocesses.

Current Tags

  • 1.1.2                                ...           latest (6 years ago)

2 Versions

  • 1.1.2                                ...           6 years ago
  • 1.1.1                                ...           6 years ago
Maintainers (1)
Downloads
Total 2
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (4)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE