Skip to content

Commit

Permalink
exclude mock package from coverage since it's autogenerated
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleyDumaine committed Mar 14, 2024
1 parent 6976a86 commit 123a51f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 123a51f

Please sign in to comment.