Comments (5)
Hi @jcabreram
thanks for the example file.
It turned out, that the -t option was not yet used in the coverage methods.
Please try the new version 1.3 I just released.
Hope it fixes your issue. Sorry for the delay.
from xcresultparser.
Hello Jonathan,
sorry for the late response.
Is it enough to specify the targets which you are interested in?
There is an option to specify the targets, for which the code coverage report is generated.
You should also be able to specify the targets for the coverage for your test run, so that the data doesn't even appear in the xcresult file.
But meanwhile you may want to look into the option "t":
-t, --coverage-targets
Specify which targets to calculate coverage from
Would that help your problem?
from xcresultparser.
Hi @a7ex, thank you very much for your reply. I've tried to specify the targets so that the data doesn't even appear in the .xcresult
file but because it's a Swift package that I'm testing without converting it into an .xcodeproj
, it doesn't seem to be possible to do that, as I've also read on this Swift forum thread.
I'm generating the .xcresult
file with the command xcodebuild -scheme MyScheme test -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 13,OS=15.2' -enableCodeCoverage YES
I've tried the -t
option of xcresultparser
as you've suggested but it's still showing the dependencies in its output starting with Users.runner.Library.Developer.Xcode.DerivedData.s-budpulsgqbxhygedafjqfylpodyj.SourcePackages.checkouts
.
This is the command I'm using for parsing: xcresultparser -t MyScheme -o cobertura coverage.xcresult > cobertura.xml
Am I doing something incorrectly?
Thanks again!
from xcresultparser.
The targets option should do what you want.
Could you send me an example xcarchive so I can check why the targets filter doesn't work?
from xcresultparser.
@a7ex thank you so so much! That worked. I'm only seeing the code coverage for the target now.
from xcresultparser.
Related Issues (12)
- Binaries attached to releases HOT 15
- "--project-root" seems to be case sensitive when used while generating coverage HOT 5
- Json format output HOT 4
- Skipped tests shows as failed in txt results HOT 5
- Wrong calculation of failed tests in txt results HOT 2
- Corrupted data in txt results if run UI tests simultaneously on two devices HOT 5
- fullpath is not shown in xml HOT 10
- Why need to get the dtd file by visiting http://cobertura.sourceforge.net ? HOT 2
- Any chance of getting xcresultparser on brew? HOT 2
- Markdown formatting on github will display `<span>` tags HOT 1
- `xcresultparser` errors out with code 133 when executed HOT 14
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 xcresultparser.