Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rumpl/cov
- Owner: rumpl
- License: bsd-3-clause
- Created: 2020-05-19T11:10:09.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-19T11:48:50.000Z (over 4 years ago)
- Last Synced: 2024-11-24T20:32:33.351Z (3 months ago)
- Language: Go
- Size: 1.84 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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%
...
```