lcov-to-cobertura-xml
lcov-to-cobertura-xml copied to clipboard
Converts lcov output to Cobertura-compatible XML for CI
Patch 1
xml.dom use too much memory, so converting big lcov file may result in memory error on memory limitated environment like jenkins. xml.etree will reduce memory usage to under 10~20% than...
``` /tmp/./lcov_cobertura.py:21: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.spawn import find_executable ```
Coming from https://gitlab.com/gitlab-org/gitlab/-/issues/328772#note_840831654 Gitlab may have issue in processing big files, so would be nice to have a parameter to split the file without using multiple tools.
In case we've subprojects generating multiple *.lcov files, it would be nice to aggregate them in a single `coverage.xml` file
I have a .lcov file generated by llvm-cov. ``` /usr/lib/llvm-8/bin/llvm-cov export -format=lcov -Xdemangler c++filt -Xdemangler -n -instr-profile=xxx.profdata -object=build/bin/xxx > worker_ut.lcov python3 /usr/local/lib/python3.9/dist-packages/lcov_cobertura/lcov_cobertura.py xxxx.lcov ``` When i use it in gitlab-ci:...
Beyond C++, other language compilers may also mangle names, and need to use a custom demangler. This is done with a new `--demangler` option, defaulting to c++filt when `--demangle` is...
When I generate an HTML report with `genhtml` I get 5623/7013 lines covered in total, which is 80%. Looking at the xml file produced by this library the root entry...
Hi, I'm getting this error on sonarqube server: _Unknown report version: 2.0.3. This parser only handles version 1._ Not sure about this: is "report version 2.0.3" the one generated by...
It seems if more that one `--excludes` wants to match on a single item one gets uncaught exceptions. Changing it to an error message instead: ``` diff --git a/lcov_cobertura/lcov_cobertura.py b/lcov_cobertura/lcov_cobertura.py...