Skip to content

Commit

Permalink
test coverpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Mar 15, 2023
1 parent c2bd698 commit 75d6cda
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 @@ -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.
Expand Down

0 comments on commit 75d6cda

Please sign in to comment.