diff --git a/scripts/test.sh b/scripts/test.sh index 46ec8b9b..d5dbdf6d 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -40,7 +40,7 @@ echo "PKGS_DELIM : $PKGS_DELIM" touch ./coverage.tmp echo 'mode: atomic' > coverage.txt -go list ./... | grep -v testdata | grep -v examples | grep -v tests | grep -v vendor | grep -v /cmd | grep -v /vendor | xargs -n1 -I{} sh -c 'go test -covermode=atomic -coverprofile=coverage.tmp -coverpkg $(go list ./... | grep -v /vendor | tr "\n" ",") {} && tail -n +2 coverage.tmp >> coverage.txt || exit 255' && rm coverage.tmp +go list ./... | grep -v testdata | grep -v examples | grep -v tests | grep -v vendor | grep -v /cmd | grep -v /vendor | xargs -n100 -I{} sh -c 'go test -covermode=atomic -coverprofile=coverage.tmp -coverpkg $(go list ./... | grep -v /vendor | tr "\n" ",") {} && tail -n +2 coverage.tmp >> coverage.txt || exit 255' && rm coverage.tmp # go test \ # -cover \