lcov-cobertura
LCOV to Cobertura XML converter
Decision gist · record as of 2026-08-14
Yes, if you use lcov-based coverage tools and need to feed results into a system that expects Cobertura XML. The package is lightweight, stable, and has no security vulnerabilities. The 538-day gap since last release is not a concern given the narrow, stable scope of format conversion.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or later.
- Optional C++ demangling requires the c++filt system utility.
- Low install friction with a single lightweight runtime dependency (importlib-metadata).
License · maintenance · safety
Apache License, Version 2.0 (permissive) — Licensed under Apache License, Version 2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
last release 2025-02-22 (538 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,139,728 downloads/mo, #4,308 on PyPI
Alternatives
Verify before relying
pip install lcov_cobertura
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)- Actual maintenance activity and community engagement beyond the release date
- Performance characteristics with large lcov files
- Completeness of coverage metric support beyond documented metrics
What it is and what it does
lcov_cobertura is a format converter that reads code coverage data in lcov format and transforms it into Cobertura XML format. It preserves coverage metrics at multiple levels: package/folder, class/file, function, and individual line and branch coverage.
You can use it as a command-line tool to batch-convert coverage files, or import it as a Python module to integrate coverage transformation into your build pipeline. It supports filtering packages by regex, specifying custom source directories, and optionally demangling C++ function names. The package supports Python 3.8+.
Use it for
- Convert lcov reports to Cobertura XML for CI server integration and build stability tracking
- Aggregate coverage metrics from multiple test runs into a single standardized format
- Filter and exclude test packages from coverage reports before submitting to CI systems
- Demangle C++ function names in coverage reports for more readable dashboards
- Integrate coverage conversion into build scripts without adding heavy external dependencies
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use lcov-based coverage tools and need to feed results into a system that expects Cobertura XML.
The package is lightweight, stable, and has no security vulnerabilities. The 538-day gap since last release is not a concern given the narrow, stable scope of format conversion.
Install
lcov-cobertura on PyPI
Before you install
Low install friction with a single lightweight runtime dependency (importlib-metadata). Package is aging (538 days since last release) but marked Production/Stable with latest release on 2025-02-22.
Requires Python 3.8 or later. Optional C++ demangling requires the c++filt system utility.
License in practice
Licensed under Apache License, Version 2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install lcov_cobertura
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)
Verify before relying
- Actual maintenance activity and community engagement beyond the release date
- Performance characteristics with large lcov files
- Completeness of coverage metric support beyond documented metrics
Package facts
| License | Apache License, Version 2.0 permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageimportlib-metadata |
| Maintenance | Aging 538 days since the last release |
| First released | |
| Downloads | 1,139,728 / month, #4,308 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Quality AssuranceTopic :: Software Development :: Testing |
Evidence: lcov_cobertura-2.1.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “lcov to cobertura converter”
- lcov-coberturaConverts code coverage reports from lcov format to Cobertura XML…
- gcovrGcovr processes GCC code coverage data and generates human-readable…
- pyucisPyUCIS provides a Python API and CLI tools for reading, writing,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also gcovr · pycobertura · fastcov · pyucis · nosexcover · junit2html · diff-cover · unittest-xml-reporting · urdf-usd-converter · junit-xml