diff --git a/Makefile b/Makefile index c535a2cca..950a6305b 100644 --- a/Makefile +++ b/Makefile @@ -75,9 +75,14 @@ test-acc: -race \ -timeout=10m \ -vet="${VETTERS}" \ - ./... + ./... \ + -coverprofile=coverage.out .PHONY: test-acc +test-coverage: + @go tool cover -func ./coverage.out | grep total +.PHONY: test-coverage + e2e-test: @go test \ -count=1 \ diff --git a/scripts/presubmit.sh b/scripts/presubmit.sh index 5759c571a..04d992db3 100755 --- a/scripts/presubmit.sh +++ b/scripts/presubmit.sh @@ -107,3 +107,5 @@ fi echo "🧪 Test" make test-acc +echo "🔬 Test Coverage" +make test-coverage