LCOV to Cobertura XML converter
Low maintenance activity. Last release 21 months ago. Weaker on commit activity and recent releases.
$
pip install lcov-coberturalcov to cobertura XML converter
This project does as the name implies: it converts 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.
Coverage metrics supported:
- Package/folder overall line and branch coverage
- Class/file overall line and branch coverage
- Functions hit
- Line and Branch hits
Quick usage
Grab it raw and run it with python:
python lcov_cobertura.py lcov-file.dat
-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-d/--demangle- (Optional) Demangle C++ function names. Requires c++filt
python lcov_cobertura.py lcov-file.dat --base-dir src/dir --excludes test.lib --output build/coverage.xml --demangle