Skip to content

Commit 48e3ca6

Browse files
committed
Ignore test packages for code coverage
Signed-off-by: Shiva Krishna, Merla <smerla@nvidia.com>
1 parent caf1d75 commit 48e3ca6

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
@@ -121,7 +121,7 @@ coverage: test
121121

122122
.PHONY: test
123123
test: manifests generate fmt vet envtest ## Run tests.
124-
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test $$(go list ./... | grep -v /e2e) -coverprofile $(COVERAGE_FILE)
124+
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test $$(go list ./... | grep -v test/ | grep -v api/) -coverprofile $(COVERAGE_FILE)
125125

126126
# Utilize Kind or modify the e2e tests to load the image locally, enabling compatibility with other vendors.
127127
.PHONY: test-e2e # Run the e2e tests against a Kind k8s instance that is spun up.

0 commit comments

Comments
 (0)