From 82b388fc3bf0b6abd3bbf8513ec07c0eb30f9ee5 Mon Sep 17 00:00:00 2001 From: "Muyassarov, Feruzjon" Date: Wed, 1 Mar 2023 14:30:23 +0200 Subject: [PATCH] test: add code coverage reporting Add code coverage reporting so that the report is then available to the PR author and reviewers via codecov GitHub app. Signed-off-by: Muyassarov, Feruzjon --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 92cff1797..a1b60a3d9 100644 --- a/Makefile +++ b/Makefile @@ -178,7 +178,7 @@ helm-lint: helm lint --strict deployment/helm/node-feature-discovery/ test: - $(GO_CMD) test ./cmd/... ./pkg/... ./source/... + $(GO_CMD) test -covermode=atomic -coverprofile=coverage.out ./cmd/... ./pkg/... ./source/... e2e-test: @if [ -z ${KUBECONFIG} ]; then echo "[ERR] KUBECONFIG missing, must be defined"; exit 1; fi