chore: Add coverage measurement task for local confirmation

This commit is contained in:
tsuyoshiwada 2018-02-25 00:55:55 +09:00
parent 7a6d2a015d
commit b7385619d1

View file

@ -11,6 +11,7 @@ clean:
rm -rf ./dist/
rm -rf ./git-chglog
rm -rf $(GOPATH)/bin/git-chglog
rm -rf cover.out
.PHONY: bulid
build:
@ -20,6 +21,12 @@ build:
test:
go test -v `go list ./... | grep -v /vendor/`
.PHONY: coverage
coverage:
goverage -coverprofile=cover.out `go list ./... | grep -v /vendor/`
go tool cover -func=cover.out
@rm -rf cover.out
.PHONY: install
install:
go install ./cmd/git-chglog