https://github.com/haya14busa/goverage
go test -coverprofile for multiple packages
https://github.com/haya14busa/goverage
coverage go golang test
Last synced: 8 days ago
JSON representation
go test -coverprofile for multiple packages
- Host: GitHub
- URL: https://github.com/haya14busa/goverage
- Owner: haya14busa
- License: mit
- Created: 2016-10-21T05:29:32.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-03-08T00:35:25.000Z (about 5 years ago)
- Last Synced: 2025-04-14T03:14:08.647Z (8 days ago)
- Topics: coverage, go, golang, test
- Language: Go
- Homepage:
- Size: 36.1 KB
- Stars: 88
- Watchers: 5
- Forks: 13
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## goverage - go test -coverprofile for multiple packages
[](https://circleci.com/gh/haya14busa/goverage)
[](LICENSE)The solution of https://github.com/golang/go/issues/6909 with one binary.
## Installation
```
go get -u github.com/haya14busa/goverage
```## Usage
```
Usage: goverage [flags] -coverprofile=coverage.out packagesFlags:
-covermode string
sent as covermode argument to go test
-coverprofile string
Write a coverage profile to the file after all tests have passed
-cpu string
sent as cpu argument to go test
-go-binary
An alternative 'go' binary to run the tests, for example to use 'richgo' for
more human-friendly output.
-parallel string
sent as parallel argument to go test
-race
enable data race detection
-short
sent as short argument to go test
-timeout string
sent as timeout argument to go test
-v sent as v argument to go test
``````
$ goverage -v -coverprofile=coverage.out ./...
$ go tool cover -html=coverage.out
```### :bird: Author
haya14busa (https://github.com/haya14busa)