@jacksontian/gocov
v1.0.1
Published
The better Golang test coverage report than 'go tool cover'
Downloads
145
Readme
gocov
A better test coverage reporter than go tool cover
. The project inspired by Istanbul.
Installation
npm install @jacksontian/gocov -g
Usage
Run go test first:
go test -race -coverprofile=coverage.txt -covermode=atomic ...
The coverage data file will be generated at coverage.txt.
gocov coverage.txt
Open the coverage/index.html
.
Features
- Prettier HTML reporter.
- Sort by filename, branch coverage rate, line coverage rate.
- Group by dictionary.
License
The BSD-3 License