Skip to content

JacksonTian/gocov

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Demo

License

The BSD-3 License

About

A better test coverage reporter than go tool cover.

Resources

License

Stars

Watchers

Forks

Packages

No packages published