Skip to content

Instantly share code, notes, and snippets.

@ppeelen
Last active May 31, 2022 12:13
Show Gist options
  • Save ppeelen/3b6cae0af8c247b85319a38263d97ed6 to your computer and use it in GitHub Desktop.
Save ppeelen/3b6cae0af8c247b85319a38263d97ed6 to your computer and use it in GitHub Desktop.
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