修正lcov到cobertura的xml转换器
lcov-cobertura-fix的Python项目详细描述
- 将lcov格式的代码覆盖率报告文件转换为cobertura的xml
报表格式,以便像Jenkins这样的CI服务器可以聚合结果和 确定建造稳定性等。
>>> from lcov_cobertura import LcovCobertura >>> LCOV_INPUT = 'your lcov input' >>> converter = LcovCobertura(LCOV_INPUT) >>> cobertura_xml = converter.convert() >>> print(cobertura_xml)