feat: add go test total cover
Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
parent
3c907e2c2b
commit
34c5adb1da
3
Makefile
3
Makefile
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue