
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
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:
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++filtpython lcov_cobertura.py lcov-file.dat --base-dir src/dir --excludes test.lib --output build/coverage.xml --demangle
pip install lcov_cobertura
lcov_cobertura 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++filtlcov_cobertura lcov-file.dat --base-dir src/dir --excludes test.lib --output build/coverage.xml --demangle
Use it anywhere in your python:
from lcov_cobertura import LcovCobertura
LCOV_INPUT = 'SF:foo/file.ext\nDA:1,1\nDA:2,0\nend_of_record\n'
converter = LcovCobertura(LCOV_INPUT)
cobertura_xml = converter.convert()
print(cobertura_xml)
Python 3.8+ is supported. The last release with Python 2.x support is version 1.6.
This project is made possible due to the efforts of these fine people:
This project is provided under the Apache License, Version 2.0.
FAQs
LCOV to Cobertura XML converter
We found that lcov-cobertura demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.