justlog/Makefile
2017-03-08 22:24:51 +01:00

17 lines
No EOL
338 B
Makefile

PACKAGES = $(shell find ./ -type d -not -path '*/\.*')
build:
go build
install:
go install
test:
go test -v
cover:
echo "mode: count" > coverage-all.out
$(foreach pkg,$(PACKAGES),\
go test -coverprofile=coverage.out -covermode=count $(pkg);\
tail -n +2 coverage.out >> coverage-all.out;)
go tool cover -html=coverage-all.out