From 916961a95702784dbc7eb8b7b74f9a0c066cf08b Mon Sep 17 00:00:00 2001 From: Balazs Gibizer Date: Thu, 14 Sep 2023 16:22:11 +0200 Subject: [PATCH] [envtest]Run test in random order Now that the test global variable handling is improved the test can run in any order. --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index bd048524..3624d6af 100644 --- a/Makefile +++ b/Makefile @@ -107,8 +107,7 @@ vet: gowork ## Run go vet against code. .PHONY: test test: manifests generate gowork fmt vet envtest ginkgo ## Run tests. - # TODO(gibi): enable --randomize-all and fix test failures - KUBEBUILDER_ASSETS="$(shell $(ENVTEST) -v debug --bin-dir $(LOCALBIN) use $(ENVTEST_K8S_VERSION) -p path)" $(GINKGO) --trace --cover --coverpkg=../../pkg/placement,../../controllers,../../api/v1beta1 --coverprofile cover.out --covermode=atomic ${PROC_CMD} $(GINKGO_ARGS) ./tests/... + KUBEBUILDER_ASSETS="$(shell $(ENVTEST) -v debug --bin-dir $(LOCALBIN) use $(ENVTEST_K8S_VERSION) -p path)" $(GINKGO) --trace --cover --coverpkg=../../pkg/placement,../../controllers,../../api/v1beta1 --coverprofile cover.out --covermode=atomic --randomize-all $(GINKGO_ARGS) ./tests/... ##@ Build