Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rumpl/cov

Go code coverage by file
https://github.com/rumpl/cov

Last synced: 15 days ago
JSON representation

Go code coverage by file

Awesome Lists containing this project

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%
...
```