add coverage.html

This commit is contained in:
2021-06-01 08:42:23 +03:00
parent 21cafcfc16
commit ff11d83ab0
3 changed files with 14 additions and 22 deletions

10
Makefile Normal file
View File

@@ -0,0 +1,10 @@
.PHONY: test
test:
go test -cover ./...
.INTERMEDIATE: coverage.out
coverage.out: $(shell git ls-files '*.go')
go test -coverprofile $@ ./...
coverage.html: coverage.out
go tool cover -html=$< -o $@