Skip to content

Commit ec63f48

Browse files
committed
Enable fail-fast for E2E tests
Stop test execution immediately on first failure to save CI time and provide faster feedback when tests fail.
1 parent ed03239 commit ec63f48

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ test: manifests generate fmt vet setup-envtest ## Run tests.
120120

121121
.PHONY: test-e2e ## Run e2e tests.
122122
test-e2e: ginkgo
123-
$(GINKGO) -v --timeout=1h --label-filter="!bundle" -p ./test/e2e/
123+
$(GINKGO) -v --timeout=1h --label-filter="!bundle" --fail-fast -p ./test/e2e/
124124

125125
.PHONY: test-e2e-bundle ## Run bundle e2e tests.
126126
test-e2e-bundle: operator-sdk docker-build docker-push bundle bundle-build bundle-push install-olm-in-cluster ginkgo
127-
OPERATOR_SDK=$(OPERATOR_SDK) BUNDLE_IMG=$(BUNDLE_IMG) $(GINKGO) -v --timeout=1h --label-filter="bundle" ./test/e2e/
127+
OPERATOR_SDK=$(OPERATOR_SDK) BUNDLE_IMG=$(BUNDLE_IMG) $(GINKGO) -v --timeout=1h --label-filter="bundle" --fail-fast ./test/e2e/
128128

129129
.PHONY: install-olm-in-cluster
130130
install-olm-in-cluster: operator-sdk ## Install OLM in cluster if not already installed.

0 commit comments

Comments
 (0)