mirror of
https://github.com/git-chglog/git-chglog.git
synced 2026-01-23 02:15:12 +00:00
chore: Add coverage measurement task for local confirmation
This commit is contained in:
parent
7a6d2a015d
commit
b7385619d1
1 changed files with 7 additions and 0 deletions
7
Makefile
7
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue