Last active
August 29, 2015 14:08
-
-
Save stevenjack/c58c23eeaeb8f6bec558 to your computer and use it in GitHub Desktop.
This file contains 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
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 |
Author
stevenjack
commented
Oct 27, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment