Skip to content

Instantly share code, notes, and snippets.

@blazingpair
Created June 29, 2012 23:35
Show Gist options
  • Save blazingpair/3021419 to your computer and use it in GitHub Desktop.
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
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