Skip to content

Commit

Permalink
*: output coverage stats to the makefile (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
djshow832 authored Oct 8, 2022
1 parent 6a218a1 commit e255b6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ test: gocovmerge
go test -coverprofile=.cover.pkg ./...
cd lib && go test -coverprofile=../.cover.lib ./...
$(GOBIN)/gocovmerge .cover.* > .cover
go tool cover -func=.cover -o .cover.func
tail -1 .cover.func
rm -f .cover.*
go tool cover -html=.cover -o .cover.html

Expand Down

0 comments on commit e255b6b

Please sign in to comment.