Created
June 29, 2012 23:35
-
-
Save blazingpair/3021419 to your computer and use it in GitHub Desktop.
/usr/bin/osascript for XCode post test action to open CoverStory to show test coverage
This file contains hidden or 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
set PLATFORM_PREFERRED_ARCH to system attribute "PLATFORM_PREFERRED_ARCH" | |
set OBJECT_FILE_DIR to system attribute "OBJECT_FILE_DIR" | |
set BUILD_VARIANTS to system attribute "BUILD_VARIANTS" | |
set coverageDir to OBJECT_FILE_DIR & "-" & BUILD_VARIANTS & "/" & PLATFORM_PREFERRED_ARCH | |
if PLATFORM_PREFERRED_ARCH is equal to "i386" then | |
tell application "CoverStory" | |
activate | |
set coverage to open coverageDir | |
end tell | |
end if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment