From 75d6cdaf6c69e503ffda79ee01ee8d9ec46d4b78 Mon Sep 17 00:00:00 2001 From: Roman Dodin Date: Wed, 15 Mar 2023 12:22:53 +0100 Subject: [PATCH] test coverpkg --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ecbf769..f7c642c 100644 --- a/Makefile +++ b/Makefile @@ -58,7 +58,7 @@ vet: ## Run go vet against code. .PHONY: test test: manifests generate fmt vet envtest ## Run tests. - KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test ./... -coverprofile cover.out + KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test ./... -coverpkg=./... -coverprofile cover.out .PHONY: unit-test unit-test: manifests generate fmt vet ## Run unit tests which do not involve envtest.