From 035f4e6c87f49eee768937cbec330f803376897a Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 7 Aug 2022 00:44:59 +0700 Subject: all: generate coverage when running tests --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d1f8fb3..4b4f88f 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,8 @@ .PHONY: all install all: - CGO_ENABLED=1 go test -race -failfast ./... + CGO_ENABLED=1 go test -race -failfast -coverprofile=cover.out ./... + go tool cover -html=cover.out -o cover.out install: go install ./cmd/gotp -- cgit v1.3