GithubHelp home page GithubHelp logo

Ignore directories/files? about xcresultparser HOT 5 CLOSED

a7ex avatar a7ex commented on July 2, 2024
Ignore directories/files?

from xcresultparser.

Comments (5)

a7ex avatar a7ex commented on July 2, 2024 1

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.

a7ex avatar a7ex commented on July 2, 2024

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.

jcabreram avatar jcabreram commented on July 2, 2024

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.

a7ex avatar a7ex commented on July 2, 2024

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.

jcabreram avatar jcabreram commented on July 2, 2024

@a7ex thank you so so much! That worked. I'm only seeing the code coverage for the target now.

from xcresultparser.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.