Skip to content

Commit d5477ad

Browse files
zhaque44zachaller
authored andcommitted
update make target to match PR comments
Signed-off-by: zhaque44 <[email protected]>
1 parent a0203d1 commit d5477ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ vet: ## Run go vet against code.
8282
test: manifests generate fmt vet envtest ## Run tests.
8383
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test $$(go list ./... | grep -v /e2e) -coverprofile cover.out
8484

85+
.PHONY: test-exclude-controllers
86+
test-exclude-controllers: ## Run tests, excluding TestControllersGinkgo
87+
@echo "Running tests excluding TestControllersGinkgo..."
88+
@go test $$(go test ./... -list . | grep -v "^ok" | grep -v "TestControllersGinkgo")
89+
8590
# Utilize Kind or modify the e2e tests to load the image locally, enabling compatibility with other vendors.
8691
.PHONY: test-e2e # Run the e2e tests against a Kind k8s instance that is spun up.
8792
test-e2e:

0 commit comments

Comments
 (0)