Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Converts lcov output to Cobertura-compatible XML for CI
Python Shell
tree: 460a2dfb11

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
LICENSE
README.md
lcov-to-cobertura-xml.py

README.md

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.

Something went wrong with that request. Please try again.