@cvrg-report/jacoco-json

0.1.2 • Public • Published

jacoco-json

Parse jacoco report files, and return a JSON representation in a lcov-parse compatible manner.

Installation

$ npm i @cvrg-report/jacoco-json --save

Usage

var jacoco = require("@cvrg-report/jacoco-json");

// Parse by file path
jacoco.parseFile("filepath.xml")
    .then(function (result) {
        console.log(JSON.stringify(result));
    }).catch(function (err) {
        console.error(err);
    });

// Parse by file contents
jacoco.parseContent("<?xml version=\"1.0\" ?><report>...</report>")
    .then(function (result) {
        console.log(JSON.stringify(result));
    }).catch(function (err) {
        console.error(err);
    });

Thanks

This repo was initially forked from vokal/jacoco-parse. Thanks a lot!

Readme

Keywords

none

Package Sidebar

Install

npm i @cvrg-report/jacoco-json

Weekly Downloads

9

Version

0.1.2

License

MIT

Unpacked Size

12.1 kB

Total Files

6

Last publish

Collaborators

  • tobilg