cobertura-parse

Parse cobertura coverage to JSON, based on output from lcov-parse

MIT 6 个版本
安装
npm install cobertura-parse
yarn add cobertura-parse
pnpm add cobertura-parse
bun add cobertura-parse
README

cobertura-parse

Parse cobertura results file and return JSON

The output is based on, and intended to be compatible with, https://github.com/davglass/lcov-parse

Use

var cob = require( "cobertura-parse" );

// parse by file path
cob.parseFile( "filepath.xml", function( err, result ) { ... } );

// or parse file contents
cob.parseContent( "<?xml version="1.0" ?><coverage>...</coverage>",
    function( err, result ) { ... } );
版本列表
1.0.5 2018-04-16
1.0.4 2016-03-09
1.0.3 2015-06-23
1.0.2 2015-06-18
1.0.1 2015-06-18
1.0.0 2015-06-18