11 lines
204 B
Makefile
11 lines
204 B
Makefile
.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 $@
|