diff --git a/.gitignore b/.gitignore index 9e218b05..f712be44 100644 --- a/.gitignore +++ b/.gitignore @@ -9,5 +9,8 @@ tmp/ .vscode/ .kubeconfig-kind-integration +*.coverprofile +*.html + # gosec gosec-report.sarif diff --git a/Makefile b/Makefile index 364dbd07..fdfe4fc2 100644 --- a/Makefile +++ b/Makefile @@ -75,6 +75,10 @@ test: $(GINKGO) test-integration: $(REPORT_COLLECTOR) $(SETUP_ENVTEST) @bash $(GARDENER_HACK_DIR)/test-integration.sh ./test/integration/... +.PHONY: test-cov +test-cov: + @bash $(GARDENER_HACK_DIR)/test-cover.sh $(shell go list ./pkg/... | grep -v /pkg/client) ./cmd/... + .PHONY: generate generate: $(VGOPATH) $(CONTROLLER_GEN) @GARDENER_HACK_DIR=$(GARDENER_HACK_DIR) VGOPATH=$(VGOPATH) REPO_ROOT=$(REPO_ROOT) ./hack/generate-code