lcov-to-cobertura-xml | Converts lcov output to Cobertura-compatible XML for CI | Dashboard library
kandi X-RAY | lcov-to-cobertura-xml Summary
kandi X-RAY | lcov-to-cobertura-xml Summary
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.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Convert the file into a Cobertura XML
- Parse the coverage report
- Generate coverage XML
- Compute the percentage of covered lines
- Set attributes on an element
- Create an element
lcov-to-cobertura-xml Key Features
lcov-to-cobertura-xml Examples and Code Snippets
Community Discussions
Trending Discussions on lcov-to-cobertura-xml
QUESTION
I have a ready javascript file that run all unit tests and coverage. And the script is generating coverage.json file. I favor using the cobertura plugin (https://wiki.jenkins-ci.org/display/JENKINS/Cobertura+Plugin) so I was looking for a solution to create the cobertura-suitable file format which is xml.
I do everything in VirutalEnv(https://wiki.jenkins-ci.org/display/JENKINS/ShiningPanda+Plugin)!
I tried this command:istanbul report cobertura --root $WORKSPACE/coverage/coverage.json --dir coverage/
(https://github.com/gotwarlost/istanbul)
And the result is as follows:
...ANSWER
Answered 2017-Jan-10 at 07:25Ok I found a solution...
My command was: istanbul report cobertura --root $WORKSPACE/coverage/coverage.json --dir coverage/
I changed it to istanbul report cobertura --root $WORKSPACE/coverage --dir $WORKSPACE
And now it works perfectly. The issue was probably setting the root and dir to the same folder. No idea why it worked that way but hey, it's solved :).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install lcov-to-cobertura-xml
You can use lcov-to-cobertura-xml like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page