Skip to content

Instantly share code, notes, and snippets.

Last active May 31, 2022
What would you like to do?
Generating CodeCov JSON report from CLI
# Run tests with enableCodeCov YES, e.g. fastlane scan with code_coverage: true
# In your derived_data folder, run the following:
xcrun xcresulttool merge Logs/Test/*.xcresult --output-path bundle.xcresult # Combines all the XCResult files
xcrun xccov view --report --json bundle.xcresult > CodeCov-report.json # Generates the report into a JSON file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment