go test -coverprofile for multiple packages
Switch branches/tags
Nothing to show
Clone or download
haya14busa Merge pull request #19 from y-tajiri/add_go_binary_option
Add -go-binary flag for richgo,goapp integration
Latest commit eec3514 Jan 29, 2018


goverage - go test -coverprofile for multiple packages


The solution of https://github.com/golang/go/issues/6909 with one binary.


go get -u github.com/haya14busa/goverage


Usage:  goverage [flags] -coverprofile=coverage.out packages

  -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
        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
        enable data race detection
        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

🐦 Author

haya14busa (https://github.com/haya14busa)