diff --git a/.gitignore b/.gitignore index 64d3aea..1926b0a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .idea -cover.out \ No newline at end of file +cover.out +cover.html diff --git a/Makefile b/Makefile index ad9506a..8098a2a 100644 --- a/Makefile +++ b/Makefile @@ -13,3 +13,7 @@ check: .PHONY: test test: go test --count 1 --cover --coverprofile=./cover.out ./... + +coverage: test + go tool cover -html ./cover.out -o ./cover.html + xdg-open ./cover.html