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: testdata/go/v3/memcached-operator/Makefile
+8-6
Original file line number
Diff line number
Diff line change
@@ -85,11 +85,8 @@ fmt: ## Run go fmt against code.
85
85
vet: ## Run go vet against code.
86
86
go vet ./...
87
87
88
-
ENVTEST_ASSETS_DIR=$(shell pwd)/testbin
89
-
test: manifests generate fmt vet ## Run tests.
90
-
mkdir -p ${ENVTEST_ASSETS_DIR}
91
-
test -f ${ENVTEST_ASSETS_DIR}/setup-envtest.sh || curl -sSLo ${ENVTEST_ASSETS_DIR}/setup-envtest.sh https://raw.githubusercontent.com/kubernetes-sigs/controller-runtime/v0.8.3/hack/setup-envtest.sh
92
-
source${ENVTEST_ASSETS_DIR}/setup-envtest.sh; fetch_envtest_tools $(ENVTEST_ASSETS_DIR); setup_envtest_env $(ENVTEST_ASSETS_DIR); go test ./... -coverprofile cover.out
88
+
test: manifests generate fmt vet envtest ## Run tests.
89
+
go test ./... -coverprofile cover.out
93
90
94
91
##@ Build
95
92
@@ -123,12 +120,17 @@ undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/confi
123
120
124
121
CONTROLLER_GEN = $(shell pwd)/bin/controller-gen
125
122
controller-gen: ## Download controller-gen locally if necessary.
0 commit comments