clean up the output of tests
This commit is contained in:
1 parent
32d3f82325
commit
9f411ee00b
2 files changed
+11
-3
No files matched your search
@@ -31,10 +31,11 @@ vet:
|
||||
go vet ./src/...
|
||||
|
||||
test:
|
||||
go test ./src/...
|
||||
go test ./src/... | ./testfilter.sh
|
||||
|
||||
autotest: test
|
||||
fswatch -or ./src | xargs -n1 -I{} go test ./src/...
|
||||
autotest:
|
||||
fswatch -or ./src | \
|
||||
xargs -n1 -I{} ${SHELL} -c 'echo ; date ; echo ----------------------------; go test ./src/... | ./testfilter.sh'
|
||||
|
||||
run: build
|
||||
./bin/${APPNAME}
|
||||
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# colorize the output of "go test"
|
||||
|
||||
sed ''/ok/s//$(printf "\033[32;1m&\033[0m")/'' | \
|
||||
sed ''/PASS/s//$(printf "\033[32;1m&\033[0m")/'' | \
|
||||
sed ''/FAIL/s//$(printf "\033[31;1m&\033[0m")/''
|
||||
Reference in new issue
Block a user