From d17f9b2fbb2b31d94d4002f633e066aab422beef Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Sun, 21 Jun 2015 18:24:34 -0400 Subject: [PATCH] add coverage report target --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index b9d19ac..b3ac335 100644 --- a/Makefile +++ b/Makefile @@ -8,4 +8,7 @@ go-test: bench: go test -bench . -benchmem +coverage: + out=`mktemp -t "forge-coverage"`; go test -coverprofile=$$out && go tool cover -html=$$out + .PHONY: lint test