feat: add go test total cover

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero 2022-11-04 22:00:15 +08:00
parent 3c907e2c2b
commit 34c5adb1da
1 changed files with 2 additions and 1 deletions

View File

@ -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: