From 336d4b5cdc60a186563fb6d515f666db930bd163 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Mon, 15 Jul 2019 20:30:40 +0200 Subject: [PATCH] Disable go unit test cache for code coverage reports --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 152a855cc..6ee79c604 100644 --- a/Makefile +++ b/Makefile @@ -81,11 +81,11 @@ test-race: $(GOTEST) -tags=slow -race -timeout 60m -v ./internal/... test-codecov: $(info Running all Go unit tests with code coverage report for codecov...) - go test -tags=slow -timeout 30m -coverprofile=coverage.txt -covermode=atomic -v ./internal/... + go test -count=1 -tags=slow -timeout 30m -coverprofile=coverage.txt -covermode=atomic -v ./internal/... scripts/codecov.sh test-coverage: $(info Running all Go unit tests with code coverage report...) - go test -tags=slow -timeout 30m -coverprofile=coverage.txt -covermode=atomic -v ./internal/... + go test -count=1 -tags=slow -timeout 30m -coverprofile=coverage.txt -covermode=atomic -v ./internal/... go tool cover -html=coverage.txt -o coverage.html clean: rm -f $(BINARY_NAME)