From 123a51f056c66347e65d92d1631d1e454612a0d6 Mon Sep 17 00:00:00 2001 From: Ashley Dumaine Date: Thu, 14 Mar 2024 12:35:50 -0400 Subject: [PATCH] exclude mock package from coverage since it's autogenerated --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index aabf27d35..6528d927e 100644 --- a/Makefile +++ b/Makefile @@ -140,7 +140,7 @@ docs: .PHONY: test test: generate fmt vet envtest ## Run tests. - KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test -race -timeout 60s ./... -coverprofile cover.out + KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test -race -timeout 60s `go list ./... | grep -v ./mock` -coverprofile cover.out .PHONY: e2etest e2etest: generate local-deploy chainsaw