Skip to content

Instantly share code, notes, and snippets.

@laevandus

laevandus/ci-ios-code-coverage-2.sh Secret

Last active Jul 3, 2021
Embed
What would you like to do?
set -o pipefail && env NSUnbufferedIO=YES xcrun xccov view --report --json $RESULT_BUNDLE > $RESULT_JSON
CODE_COVERAGE=$(cat $RESULT_JSON | jq '.targets[] | select( .name == "IndexedDataStore" and .executableLines > 0 ) | .lineCoverage')
CODE_COVERAGE=$(echo $CODE_COVERAGE*100.0 | bc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment