From 34c5adb1da2a9ba2929303fc72c72eec93e3a08a Mon Sep 17 00:00:00 2001 From: yxxhero Date: Fri, 4 Nov 2022 22:00:15 +0800 Subject: [PATCH] feat: add go test total cover Signed-off-by: yxxhero --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e07e90af..b2295947 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,8 @@ build-test-tools: test: @which helm &> /dev/null || (echo "helm binary not found. Please see: https://helm.sh/docs/intro/install/" && exit 1) go build -o helmfile . - go test -v ${PKGS} -cover -race -p=1 + go test -v ${PKGS} -coverprofile cover.out -race -p=1 + go tool cover -func cover.out .PHONY: test integration: