Skip to content

Parse cobertura results file and return JSON

License

Notifications You must be signed in to change notification settings

fschwaiger/cobertura-parse

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ) { ... } );

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

About

Parse cobertura results file and return JSON

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.0%
  • Shell 4.0%