Comments (8)
I'd also be interested in Cobertura format reports - we can use the HTML generated but I think we'll lose our coverage trends by doing so.
from xcodecoverage.
Check this solution https://github.com/eriwen/lcov-to-cobertura-xml, it works well for me. I modified the "getcov" script to use the python script from it. More advanced solution would be to use for example "--format" parameter to set the wanted output format (html/cobertura-xml)
from xcodecoverage.
@rolandkakonyi Every time I try to use that tool, I get an error saying "unable to convert". I'm not particularly sure what file I should be pointing it at? Any tips?
from xcodecoverage.
try this:
https://github.com/rolandkakonyi/XcodeCoverage/blob/master/getcov
I changed my forked copy to use that tool.
I'm using it on a company jenkins-ci and it is working well.
I should create a pull request.
from xcodecoverage.
@rolandkakonyi Thanks for that. I gave it a go running python lcov_cobertura.py lcov-file.dat
but no dice. I'm trying to get it running on jenkins too, but testing in a local repo at the moment.
Running with Xcode 6.1 on Yosemite, if that makes any difference. The plain XcodeCoverage tool works a treat.
The error/message I get is Unable to convert lcov-file.dat to Cobertura XML
I've searched for that file on my system and I can't find it. I've tried pointing to the Coverage.info
and index.html
as well, with the same error
from xcodecoverage.
@killian90 I'm using Yosemite & Xcode 6.1 too.
You should use the argument "--format cobertura-xml" on my script.
like:
"XcodeCoverage/getcov --format cobertura-xml"
(note: result coverage.xml file will be under XcodeCoverage folder)
the python script should be used with arguments -b and -o
like:
python lcov_cobertura.py lcov-file.dat -b ${SRCROOT of the tested project (not the test project) } -o ${DESTINATION_XML_FILE}
from xcodecoverage.
@rolandkakonyi I completely misunderstood what I was supposed to be doing with your file. It's working now to the point where it just prints the coverage file to terminal. I feel like I'm missing something obvious.
I've piped the output to a file to see if there was any errors (couldn't scroll back to the beginning of the xml output) and there are none.
from xcodecoverage.
Just merged pull request #29 which adds Cobertura support
from xcodecoverage.
Related Issues (20)
- Excluding Files From Coverage .xcodecoverageignore HOT 5
- Code coverage in Xcode without tests (for manual run) HOT 1
- How can I show branch coverage or decision coverage? HOT 1
- Can there be an input which will enable the branch coverage too? HOT 1
- Xcode 8 Support HOT 4
- Can I dump the gcda that without line counter? HOT 1
- NAming convention to create .xcodecoverageignore HOT 1
- Unexpected number of functions & Unexpected number of edges HOT 1
- How to set IGNORED HOT 3
- How to check a pod(SDWebImage)coverage rate HOT 1
- when i run unit test and then run getcov it's given error HOT 1
- Unable to generate code coverage with Xcode 10 Beta HOT 5
- Swift support with xcode 9.4 HOT 1
- how to deal with the follow problem HOT 1
- Using xcodecoverage for the real device? HOT 1
- Unable to see coverage report in XCode 11.6 with new build system. HOT 1
- How to set the specified files to whitelist HOT 3
- No branch coverage after updating to 1.4 HOT 1
- Unable to see coverage report in XCode 12.4 with new build system
- Coverage data includes Apple's SDKs 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 xcodecoverage.