Skip to content

Instantly share code, notes, and snippets.

@cmdrkeene
Created January 22, 2015 01:36
Show Gist options
  • Save cmdrkeene/ddc8e18a13016a056b33 to your computer and use it in GitHub Desktop.
Save cmdrkeene/ddc8e18a13016a056b33 to your computer and use it in GitHub Desktop.
Simple auto test for Go
#!/bin/bash
which entr > /dev/null
if [ $? -ne 0 ]; then
echo "installing entr"
brew install entr
else
echo "watching go files"
fi
while sleep 1; do
ls *.go | entr -d -c go test ./... -logtostderr=true
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment