aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-08-07 00:44:59 +0700
committerShulhan <ms@kilabit.info>2022-08-07 00:44:59 +0700
commit035f4e6c87f49eee768937cbec330f803376897a (patch)
treeeaf0153c72b1de414709070a676c53527317d9c4 /Makefile
parent06016118084334cb22ee1455a7f3786c6162673a (diff)
downloadgotp-035f4e6c87f49eee768937cbec330f803376897a.tar.xz
all: generate coverage when running tests
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
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