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
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -79,13 +79,12 @@ vet: ## Run go vet against code.
79
79
go vet ./...
80
80
81
81
.PHONY: test
82
-
test: manifests generate fmt vet envtest ## Run tests.
83
-
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test$$(go list ./... | grep -v /e2e) -coverprofile cover.out
82
+
test: manifests generate fmt vet envtest ## Run Ginkgo tests using go test, we prefer to use test-parallel but this target is nice because it dose not require ginkgo cli.
83
+
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test-run TestControllersGinkgo ./... -coverprofile cover.out
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test -run ^TestControllersGinkgo ./... -coverprofile cover-go-unit.out
89
88
90
89
# Utilize Kind or modify the e2e tests to load the image locally, enabling compatibility with other vendors.
91
90
.PHONY: test-e2e # Run the e2e tests against a Kind k8s instance that is spun up.
0 commit comments