Skip to content

Commit

Permalink
Add test coverage check to makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krivak committed May 9, 2020
1 parent 9522ee1 commit 2f5725d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
test:
go test ./...

.PHONY: cover
cover:
@ go test -coverprofile cover.out ./...
@ go tool cover -html=cover.out -o cover.html
@ rm -f cover.out

.PHONY: lint
lint:
@ golangci-lint run
Expand Down

0 comments on commit 2f5725d

Please sign in to comment.