SHELL = bash .PHONY: coverage test: go test ./... coverage: [[ -d coverage ]] || mkdir coverage go test -coverpkg=./... -coverprofile=coverage/index.out ./... go tool cover -html=coverage/index.out -o coverage/index.html