Support running unit tests when files are saved.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin
2017-05-15 17:00:35 -04:00
parent a2225276af
commit 74c06a140b
5 changed files with 24 additions and 2 deletions

12
scripts/test/watch Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
set -e
filewatcher \
-L 5 \
-x '**/*.swp' \
-x .git \
-x build \
-x .idea \
-- \
sh -c 'go test -timeout 10s -v ./${dir} || ( echo; echo; exit 1 )'