Explorar o código

Use gotestsum in Lefthook when possible

DarthSim hai 6 meses
pai
achega
bd548e00e8
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      .lefthook/pre-push/test

+ 5 - 1
.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