Skip to content

Instantly share code, notes, and snippets.

@maxehmookau
Created May 6, 2013 14:18
Show Gist options
  • Save maxehmookau/5525451 to your computer and use it in GitHub Desktop.
Save maxehmookau/5525451 to your computer and use it in GitHub Desktop.
Using Guard to run your OCUnit tests automatically.
guard 'shell' do
watch(/(.*).(m|h|mm|hh)/) do
puts "Change detected. Running tests..."
`../xctool/xctool.sh -project XCodeProject.xcodeproj -scheme MainScheme test -reporter plain`
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment