Skip to content

Commit 0ddcc36

Browse files
committed
Script to display dialog with intent of being attached to a test post-action.
1 parent 708dfe9 commit 0ddcc36

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

run_code_coverage_post.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
x=`/usr/bin/osascript <<EOT
3+
tell application "Finder"
4+
activate
5+
set myReply to button returned of (display dialog "Generate Code Coverage Report")
6+
end tell
7+
EOT`
8+
if [[ $x = "OK" ]]; then
9+
echo 'Generating code coverage report'
10+
cd ${SRCROOT}/XcodeCoverage && ./getcov && open ./lcov/index.html
11+
fi
12+
echo 'Done.'

0 commit comments

Comments
 (0)