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)
- Build status sanitizing
- Add GitHub CODEOWNERS
- xcodebuild does not generate a valid xcactivitylog HOT 2
- Error: xcactivitylog is not a valid xcactivitylog file HOT 5
- Missing C files and Swift files count in HTML reports -v0.2.33
- Chrome unable to load index.html with error code 5 HOT 1
- SonarQube integrations HOT 2
- Issues with HTML Reporter (and solutions) HOT 5
- Error parsing Xcode 14 log HOT 5
- XCLogParser does not pick up deprecation warnings from xcodebuild
- 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
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.