Skip to content


Subversion checkout URL

You can clone with
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.

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.


python 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


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


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

Something went wrong with that request. Please try again.