Code Monkey home page Code Monkey logo

Comments (7)

polac24 avatar polac24 commented on May 26, 2024

Hi Daniel!
I tried Xcode 12.4 behaviour for a brand new project and .xcactivitylog files are placed in the derived data.

To customize that dir, you can append -derivedDataPath, like

xcodebuild test -scheme Demo -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11 Pro,OS=14.4' -resultBundlePath ~/Demo/result -derivedDataPath ~/Demo/DerivedData

and the loot at ~/Demo/DerivedData/{{Project}}/Logs/Build/.

If you call xcodebuild test and your DerivedData contains all products required for the test, indeed the *.xcactivitylog is in a lightweight format. To get a full build log, please try calling xcodebuild clean test... or xcodebuild clean build-for-testing ...

from xclogparser.

mollyIV avatar mollyIV commented on May 26, 2024

Hey Bartosz! Thank you for the response.

I prepared a vanilla Swift iOS app project, cleaned up the derived data and run xcodebuild clean test ..., but still no unit tests coverage information from a parse command (I tired different reporters).

Below some screenshots how the output looks like:

root-project

derived-data-logs

derived-data-build-logs

coverage

Could you please provide your steps in order to get the unit tests coverage report via xclogparser? 🙏

from xclogparser.

polac24 avatar polac24 commented on May 26, 2024

XCLogParser can capture building logs (compilation steps, errors, warnings etc.) but not unit tests results like code coverage. When you run tests in Xcode or xcodebuild the only generated .xcactivitylog file contains a summary of all steps in the build-for-testing phase (you have it generated in the Build dir).

from xclogparser.

mollyIV avatar mollyIV commented on May 26, 2024

XCLogParser can capture building logs (compilation steps, errors, warnings etc.) but not unit tests results like code coverage.

That's interesting. According to the README file:

XCLogParser can give a lot of insights in regards to build times for every module and file in your project, warnings, errors and unit tests results.

Apparently, I miss-understood "unit tests results" phrase then. Maybe we could avoid ambiguity and tweak the documentation to clearly point out what type of unit tests results are available? 😊

from xclogparser.

polac24 avatar polac24 commented on May 26, 2024

@ecamacho, do you remember what did we mean by "rests results" in a Readme file?

from xclogparser.

OliverKoo avatar OliverKoo commented on May 26, 2024

bump on this - I was also under the impression xclogparser can parse unit tests results or maybe XCLogParser expect xcodebuild test generate a .xcactivitylog file at some point? and the newwer Xcode no longer does that?

from xclogparser.

PatrikBillgren avatar PatrikBillgren commented on May 26, 2024

@ecamacho Do you have any knowledge about this issue? Thanks

from xclogparser.

Related Issues (20)

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.