From d619a5f6eb06674954627cf983b6c584cb5dbe7e Mon Sep 17 00:00:00 2001 From: Zhongcheng Lao Date: Tue, 12 Sep 2023 17:48:19 +0800 Subject: [PATCH] Including all packages in coverage --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7e5dec8565..0c173f8b18 100644 --- a/Makefile +++ b/Makefile @@ -478,7 +478,7 @@ test-junit: $(SETUP_ENVTEST) $(GOTESTSUM) $(GOVC) ## Run unit tests .PHONY: test-cover test-cover: ## Run unit tests and generate a coverage report - $(MAKE) test TEST_ARGS="$(TEST_ARGS) -coverprofile=coverage.out" + $(MAKE) test TEST_ARGS="$(TEST_ARGS) -coverpkg=./... -coverprofile=coverage.out" ./hack/codecov-ignore.sh go tool cover -func=coverage.out -o coverage.txt go tool cover -html=coverage.out -o coverage.html