cov

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2020 License: BSD-3-Clause Imports: 18 Imported by: 0

README

cov

Go code coverage by file.

The go tool cover can show the coverage by function or coverage in html mode but neither of those fit my need. This tool will show the coverage by file and show nice colors (green/yellow/red) to quickly see the state of your coverage.

Intall

$ go get -u github.com/rumpl/cov

Or you can download the binary from the releases page.

Usage

First you need to generate a cover file

$ go test -covermode=count -coverprofile=cover.out

Then you can simply:

$ cov cover.out
/Users/djordjelukic/dev/dep-sum/main.go	31.4%

Total:					31.4%
...

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL