Comments (5)
I too have the same issue, but left it for later.
I think, It happens if the build environment path is not reachable by Jenkins.
Open the generated cobertura XML file and check whether the filename mentioned is proper, i.e, it is not relative to your build environment and reachable by Jenkins or the shell in general.
from lcov-to-cobertura-xml.
@gbalachander I am not sure that that could be a problem, because packages, classes, files and lines are counted and have real coverage percent. Only branches and methods are missing.
Would you mind to look at resulted xml (and possibly to original clove data used as an input) to get a better idea of what might be the problem?
from lcov-to-cobertura-xml.
I get this problem too, the lcov html output contains functions with the appropriate percentages etc. though. I've also noticed that the signature attribute of the method tag is empty.
from lcov-to-cobertura-xml.
I think that there are two different problems here:
lcov-to-cobertura-xml
doesn't currently emit proper method data; I found that it is crucial to have at least one<line>
element per<method>
for Jenkins to detect them. In my PR #20, I address this problem.- You are not supplying
--rc lcov_branch_coverage=1
to all invocations of lcov, which is very important to get branch coverage to work. With this option set, I do get branch coverage with the current version oflcov-to-cobertura-xml
.
If this is correct, then this issue can be closed as soon as my PR is merged.
from lcov-to-cobertura-xml.
Fixed by #20
from lcov-to-cobertura-xml.
Related Issues (20)
- Index Out Of bounds HOT 4
- Pip install and running command results command not found HOT 2
- Python 3 error with --demangle HOT 1
- Discrepancy with genhtml HOT 1
- Needs a release HOT 2
- Missing function & statement metrics HOT 2
- Segmentation fault HOT 2
- Hangs in python3 with --demangle HOT 4
- CLI entry point regression HOT 5
- Cannot import name 'LcovCobertura' from 'lcov_cobertura' (unknown location) HOT 6
- gitlab-ci can't read .xml file, which is conversion by lcov-to-cobertura-xml HOT 3
- Support multiple lcov files as input HOT 1
- Add parameter to set maximum file file size (and split the output)
- distutils.spawn is deprecated, gonna be removed HOT 2
- Minidom giving memory error
- How to use lcov_cobertura file from a LICENSE perspective?
- duplicate matches in `--excludes` will lead to errors
- Sonarqube report version 1
- some problems using it from command line HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lcov-to-cobertura-xml.