diff --git a/.gitignore b/.gitignore index 9501b1b3043c..21d24277f9dd 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ cmd/**/debug hack/**/debug debug.test *.iml +coverage.out +.envrc diff --git a/Makefile b/Makefile index e09b2fdef319..c238fce4bd2c 100644 --- a/Makefile +++ b/Makefile @@ -138,7 +138,11 @@ endif .PHONY: test test: - go test ./... + go test -covermode=count -coverprofile=coverage.out ./... + +.PHONY: cover +cover: + go tool cover -html=coverage.out .PHONY: codegen codegen: