lcov_cobertura package¶
Submodules¶
Module contents¶
Converts lcov line coverage output to Cobertura-compatible XML for CI
-
class
lcov_cobertura.
LcovCobertura
(lcov_data, base_dir='.', excludes=None, demangle=False)[source]¶ Bases:
object
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.
>>> from lcov_cobertura import LcovCobertura >>> LCOV_INPUT = 'your lcov input' >>> converter = LcovCobertura(LCOV_INPUT) >>> cobertura_xml = converter.convert() >>> print(cobertura_xml) <?xml version="1.0" ?> <!DOCTYPE coverage SYSTEM 'http://cobertura.sourceforge.net/xml/coverage-04.dtd'> ...