diff --git a/.lefthook/pre-push/test b/.lefthook/pre-push/test index d9d99496..762f9e9d 100755 --- a/.lefthook/pre-push/test +++ b/.lefthook/pre-push/test @@ -10,4 +10,8 @@ fi export CGO_LDFLAGS_ALLOW="-s|-w" export CGO_CFLAGS_ALLOW="-Xpreprocessor" -go test ./... +if [ -x "$(which gotestsum)" ]; then + gotestsum ./... +else + go test -v ./... +fi