From fe4374d818362a102a07af92e6e1fefd0b848443 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Varl=C4=B1?= Date: Mon, 11 Nov 2024 16:58:01 +0000 Subject: [PATCH] Add `./cmd/...` to `make test|cover` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Burak Varlı --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e5efd2e..b2ff7a1 100644 --- a/Makefile +++ b/Makefile @@ -126,7 +126,7 @@ install-go-test-coverage: .PHONY: test test: - go test -v -race ./pkg/... -coverprofile=./cover.out -covermode=atomic -coverpkg=./pkg/... + go test -v -race ./{cmd,pkg}/... -coverprofile=./cover.out -covermode=atomic -coverpkg=./{cmd,pkg}/... # skipping controller test cases because we don't implement controller for static provisioning, # this is a known limitation of sanity testing package: https://github.com/kubernetes-csi/csi-test/issues/214 go test -v ./tests/sanity/... -ginkgo.skip="ControllerGetCapabilities" -ginkgo.skip="ValidateVolumeCapabilities"