Skip to content

walterbrebels/lcov-to-cobertura-xml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

lcov to cobertura XML converter

This project does as the name implies: it coverts code coverage report files in lcov format to Cobertura's XML report format so that CI servers like Jenkins can aggregate results and determine build stability etc.

Usage

python lcov-to-cobertura-xml.py lcov-file.dat [-b source/files/dir] [-e <exclude packages regex>] [-o output.file]'
  • -b/--base-dir - (Optional) Directory where source files are located. Defaults to the current directory
  • -e/--excludes - (Optional) Comma-separated list of regexes of packages to exclude
  • -o/--output - (Optional) Path to store cobertura xml file. Defaults to ./coverage.xml

Caveats

This was originally intended to convert JsTestDriver coverage results, so it may not work properly with all LCOV constructs. If you have any problems or suggestions, feel free to file an issue and it'll be addressed

License

This project is provided under the Apache License, Version 2.0.

About

Converts lcov output to Cobertura-compatible XML for CI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%