You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Makefile
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -138,7 +138,9 @@ test: generate fmt vet envtest image-build verify-crds ## Run tests.
138
138
139
139
.PHONY: test-unit
140
140
test-unit: ## Run unit tests.
141
-
CGO_ENABLED=1 KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test ./pkg/... -race -coverprofile cover.out
141
+
CGO_ENABLED=1 KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test ./pkg/... -race -coverprofile cover.out;\
142
+
go tool cover -func=cover.out;\
143
+
rm cover.out
142
144
143
145
.PHONY: test-integration
144
146
test-integration: envtest ## Run integration tests.
0 commit comments