Skip to content

Instantly share code, notes, and snippets.

@laevandus
Last active July 3, 2021 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laevandus/50d4150a2ad9e1860c4f93422c756971 to your computer and use it in GitHub Desktop.
Save laevandus/50d4150a2ad9e1860c4f93422c756971 to your computer and use it in GitHub Desktop.
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