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.