Support running unit tests when files are saved.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
12
scripts/test/watch
Executable file
12
scripts/test/watch
Executable 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 )'
|
||||
Reference in New Issue
Block a user