All Projects → eriwen → Lcov To Cobertura Xml

eriwen / Lcov To Cobertura Xml

Licence: apache-2.0
Converts lcov output to Cobertura-compatible XML for CI

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
Sbt Jacoco
JaCoCo Code Coverage plug-in for sbt.
Stars: ✭ 115 (-12.21%)
Mutual labels:  coverage
Devel Cover
Code coverage metrics for Perl
Stars: ✭ 91 (-30.53%)
Mutual labels:  coverage
Sequana
Sequana: a set of Snakemake NGS pipelines
Stars: ✭ 100 (-23.66%)
Mutual labels:  coverage
Infection
PHP Mutation Testing library
Stars: ✭ 1,575 (+1102.29%)
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
Coveralls Ruby
Coveralls for Ruby
Stars: ✭ 115 (-12.21%)
Mutual labels:  coverage
Courtney
Courtney is a coverage tool for Go
Stars: ✭ 92 (-29.77%)
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
Jacoco Plugin
Jenkins JaCoCo Plugin
Stars: ✭ 119 (-9.16%)
Mutual labels:  coverage
Karma Webpack Example
Karma + Webpack + Mocha + Chai + Istanbul
Stars: ✭ 88 (-32.82%)
Mutual labels:  coverage
Coverage.vim
code coverage vim plugin
Stars: ✭ 106 (-19.08%)
Mutual labels:  coverage
Example Cpp11 Cmake
Stars: ✭ 129 (-1.53%)
Mutual labels:  coverage
Example Swift
Codecov: Swift coverage example
Stars: ✭ 121 (-7.63%)
Mutual labels:  coverage
Bashcov
Code coverage tool for Bash
Stars: ✭ 113 (-13.74%)
Mutual labels:  coverage

lcov to cobertura XML converter Build Status

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

With pip:

pip 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].