Skip to content

Commit ea505af

Browse files
author
Brian Mendoza
committed
include mocktest in coverage
1 parent 2a8fd12 commit ea505af

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
@@ -141,7 +141,7 @@ docs:
141141

142142
.PHONY: test
143143
test: generate fmt vet envtest ## Run tests.
144-
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(CACHE_BIN) -p path)" go test -race -timeout 60s `go list ./... | grep -v ./mock` -coverprofile cover.out.tmp
144+
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(CACHE_BIN) -p path)" go test -race -timeout 60s `go list ./... | grep -v ./mock$` -coverprofile cover.out.tmp
145145
grep -v "zz_generated.deepcopy.go" cover.out.tmp > cover.out
146146
rm cover.out.tmp
147147

0 commit comments

Comments
 (0)