Merge pull request #495 from helmfile/add_go_test_total_cover

feat: add go test total cover
This commit is contained in:
yxxhero 2022-11-05 16:58:00 +08:00 committed by GitHub
commit 712ee3a0a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,8 @@ build-test-tools:
test: test:
@which helm &> /dev/null || (echo "helm binary not found. Please see: https://helm.sh/docs/intro/install/" && exit 1) @which helm &> /dev/null || (echo "helm binary not found. Please see: https://helm.sh/docs/intro/install/" && exit 1)
go build -o helmfile . 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 .PHONY: test
integration: integration: