Created
February 28, 2019 18:19
-
-
Save polac24/736ca5649efc5bc33504c4aacf9312b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Counting code coverage on a subset of files | |
# "Spies" is a regex in the example | |
xcrun xccov view --files-for-target StubKit.framework action.xccovreport | awk '/Spies/{print $5}' | awk '-F[/()]' '{covered += $2; all += $3} END {print covered/all*100}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment