Skip to content

Instantly share code, notes, and snippets.

@stevenjack
Last active August 29, 2015 14:08
Show Gist options
  • Save stevenjack/c58c23eeaeb8f6bec558 to your computer and use it in GitHub Desktop.
Save stevenjack/c58c23eeaeb8f6bec558 to your computer and use it in GitHub Desktop.
require 'terminal-notifier-guard'
# Simple guard file for running go tests
guard :shell do
watch(/(.*).go/) do |m|
`go test`.tap do |output|
if $? == 0
TerminalNotifier::Guard.success("\u2705 All tests passed")
else
TerminalNotifier::Guard.failed("\u26D4 Some tests failed")
end
end
end
end
@stevenjack
Copy link
Author

gem install terminal-notifier-guard guard-shell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment