Disable go unit test cache for code coverage reports

This commit is contained in:
Michael Mayer 2019-07-15 20:30:40 +02:00
parent f5d5dbe25e
commit 336d4b5cdc

View file

@ -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)