diff --git a/.gitignore b/.gitignore index 93f2f5cbf..3962ba8c1 100644 --- a/.gitignore +++ b/.gitignore @@ -36,6 +36,7 @@ debug # Custom coverage.txt +coverage-all.txt test/e2e/coverage.txt **/covcounters.* **/covmeta.* diff --git a/Makefile b/Makefile index ca72c5b4b..7ff99ec3d 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,8 @@ LDFLAGS += -X $(PROJECT_PKG)/internal/version.GitTreeState=${GIT_DIRTY} .PHONY: test test: tidy vendor check-encoding ## tidy and run tests - $(GO_EXE) test -race -v -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... ./... + $(GO_EXE) test -race -v -coverprofile=coverage-all.txt -covermode=atomic -coverpkg=./... ./... + @grep -v testutil coverage-all.txt >coverage.txt; rm -f coverage-all.txt .PHONY: teste2e teste2e: ## run end to end tests