aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index efa0d0a..7264206 100644
--- a/Makefile
+++ b/Makefile
@@ -38,6 +38,11 @@ pretest: lint vet staticcheck
test: pretest
go test -race ./...
+.PHONY: cover
+cover:
+ go test -coverprofile=cover.out -covermode=atomic -coverpkg=./... ./...
+ go tool cover -html=cover.out -o cover.html
+
.PHONY: clean
clean:
rm -rf _tmp