eriwen / Lcov To Cobertura Xml
Licence: apache-2.0
Converts lcov output to Cobertura-compatible XML for CI
Stars: ✭ 131
Programming Languages
python
139335 projects - #7 most used programming language
Labels
Projects that are alternatives of or similar to Lcov To Cobertura Xml
Swagger Coverage
Tool which generates full picture of coverage of API tests based on OAS 2 (Swagger)
Stars: ✭ 89 (-32.06%)
Mutual labels: coverage
Awesome Open Hardware Verification
A List of Free and Open Source Hardware Verification Tools and Frameworks
Stars: ✭ 103 (-21.37%)
Mutual labels: coverage
Opencover
A code coverage tool for .NET 2 and above (WINDOWS OS only), support for 32 and 64 processes with both branch and sequence points
Stars: ✭ 1,256 (+858.78%)
Mutual labels: coverage
Openpojo
POJO Testing & Identity Management Made Trivial
Stars: ✭ 122 (-6.87%)
Mutual labels: coverage
S2e
S2E: A platform for multi-path program analysis with selective symbolic execution.
Stars: ✭ 102 (-22.14%)
Mutual labels: coverage
Rain
🌧️ A live example to illustrate python packaging, testing, building, & deploying
Stars: ✭ 99 (-24.43%)
Mutual labels: coverage
Teaspoon
Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
Stars: ✭ 1,443 (+1001.53%)
Mutual labels: coverage
Ddd Tdd Rich Domain Model Dojo Kata
DDD patterns implemented following TDD
Stars: ✭ 91 (-30.53%)
Mutual labels: coverage
Karma Webpack Example
Karma + Webpack + Mocha + Chai + Istanbul
Stars: ✭ 88 (-32.82%)
Mutual labels: coverage
lcov to cobertura XML converter
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:
- Package/folder overall line and branch coverage
- Class/file overall line and branch coverage
- Functions hit
- Line and Branch hits
Quick usage
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++filt
python lcov_cobertura.py lcov-file.dat --base-dir src/dir --excludes test.lib --output build/coverage.xml --demangle
pip:
Withpip install lcov_cobertura
Command-line usage
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++filt
lcov_cobertura lcov-file.dat --base-dir src/dir --excludes test.lib --output build/coverage.xml --demangle
Usage as a Python module
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)
Environment Support
Python 2.6+ is supported (including Python 3). You can also use the experimental Jython 2.5 friendly version in the jython branch.
Contributions
This project is made possible due to the efforts of these fine people:
License
This project is provided under the Apache License, Version 2.0.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].