Skip to content
This repository has been archived by the owner on Aug 5, 2019. It is now read-only.

Latest commit

 

History

History
19 lines (13 loc) · 494 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 494 Bytes

jacoco-parse

Parse jacoco results file and return JSON

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

Use

var jacoco = require( "jacoco-parse" );

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

// or parse file contents
jacoco.parseContent( "<?xml version="1.0" ?><report>...</report>",
    function( err, result ) { ... } );