Skip to content

Commit c0ed5d1

Browse files
authored
Merge pull request #841 from SchSeba/unit_test_no_mock
Skip running unit-tests on mock folders
2 parents 8d35466 + 8b95679 commit c0ed5d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ test-bindata-scripts: fakechroot
229229
fakechroot ./test/scripts/kargs_test.sh
230230

231231
test-%: generate manifests envtest
232-
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir=/tmp -p path)" HOME="$(shell pwd)" go test ./$*/... -coverprofile cover-$*-$(CLUSTER_TYPE).out -coverpkg ./... -v
232+
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir=/tmp -p path)" HOME="$(shell pwd)" go test `go list ./$*/... | grep -v "/mock"` -coverprofile cover-$*-$(CLUSTER_TYPE).out -coverpkg ./... -v
233233

234234
GOCOVMERGE = $(BIN_DIR)/gocovmerge
235235
gocovmerge: ## Download gocovmerge locally if necessary.

0 commit comments

Comments
 (0)