Comments (7)
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.
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:
Could you please provide your steps in order to get the unit tests coverage report via xclogparser
? ๐
from xclogparser.
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.
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.
@ecamacho, do you remember what did we mean by "rests results" in a Readme file?
from xclogparser.
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.
@ecamacho Do you have any knowledge about this issue? Thanks
from xclogparser.
Related Issues (20)
- Error while adding XCLogParser as Swift Package HOT 2
- Xcode13/14 xcactivitylog missing when running test
- [discussion] Did we has a plan to resolve space time with "new_build_system"? HOT 1
- Error: Error parsing the log: Unexpected className found parsing DocumentLocation DVTMemberDocumentLocation HOT 2
- XCLogParser does not pick up all deprecation warnings HOT 2
- Analyser messages are truncated in JSON output
- Unexpected className found parsing IDEActivityLogMessage IDEActivityLogActionMessage HOT 3
- FEATURE: New reporter for OpenTelemetry HOT 3
- Swift Type check and functions build times not generated HOT 10
- Release the latest changes? HOT 2
- Memory Usage explosion in parse command in version 0.2.37 HOT 8
- ใdiscussใShould the log file loaded with encoding UTF-8 ?
- Swift Compilation marked as others type HOT 1
- Huge html report size HOT 2
- Failed create json report Xcode 15.3 HOT 5
- Error: The line *{"wcDuration":152493 doesn't seem like a valid SLF line HOT 1
- parse xcode14.3 xcactivitylog error HOT 2
- any test xcactivitylog file for 0.2.39 release HOT 1
- Unexpected token parsing array of IDEActivityLogSectionAttachment HOT 1
- Unused variable warning not being returned by the `parse` command
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 xclogparser.