Skip to content

Commit

Permalink
Add target to run specific tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kidswiss committed Feb 6, 2023
1 parent b750a10 commit 379a936
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/local.mk
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ test-e2e: $(kuttl_bin) $(mc_bin) local-install provider-config ## E2E tests
@rm -f kubeconfig
# kuttl leaves kubeconfig garbage: https://github.com/kudobuilder/kuttl/issues/297

run-single-e2e: export KUBECONFIG = $(KIND_KUBECONFIG)
run-single-e2e: $(kuttl_bin) $(mc_bin) local-install provider-config ## Run specific e2e test with `run-single-e2e test=$name`
GOBIN=$(go_bin) $(kuttl_bin) test ./test/e2e --config ./test/e2e/kuttl-test.yaml --suppress-log=Events --test $(test)
@rm -f kubeconfig

.PHONY: .e2e-test-clean
.e2e-test-clean: export KUBECONFIG = $(KIND_KUBECONFIG)
.e2e-test-clean:
Expand Down

0 comments on commit 379a936

Please sign in to comment.