github.com/haya14busa/goverage@v0.0.0-20180129164344-eec3514a20b5/README.md (about)

     1  ## goverage - go test -coverprofile for multiple packages
     2  
     3  [![CircleCI](https://circleci.com/gh/haya14busa/goverage.svg?style=svg)](https://circleci.com/gh/haya14busa/goverage)
     4  [![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
     5  
     6  The solution of https://github.com/golang/go/issues/6909 with one binary.
     7  
     8  ## Installation
     9  
    10  ```
    11  go get -u github.com/haya14busa/goverage
    12  ```
    13  
    14  ## Usage
    15  
    16  ```
    17  Usage:  goverage [flags] -coverprofile=coverage.out packages
    18  
    19  Flags:
    20    -covermode string
    21          sent as covermode argument to go test
    22    -coverprofile string
    23          Write a coverage profile to the file after all tests have passed
    24    -cpu string
    25          sent as cpu argument to go test
    26    -go-binary
    27          An alternative 'go' binary to run the tests, for example to use 'richgo' for
    28          more human-friendly output.
    29    -parallel string
    30          sent as parallel argument to go test
    31    -race
    32          enable data race detection
    33    -short
    34          sent as short argument to go test
    35    -timeout string
    36          sent as timeout argument to go test
    37    -v    sent as v argument to go test
    38  ```
    39  
    40  ```
    41  $ goverage -v -coverprofile=coverage.out ./...
    42  $ go tool cover -html=coverage.out
    43  ```
    44  
    45  ### :bird: Author
    46  haya14busa (https://github.com/haya14busa)