Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/haya14busa/goverage

go test -coverprofile for multiple packages
https://github.com/haya14busa/goverage

coverage go golang test

Last synced: about 4 hours ago
JSON representation

go test -coverprofile for multiple packages

Awesome Lists containing this project

README

        

## goverage - go test -coverprofile for multiple packages

[![CircleCI](https://circleci.com/gh/haya14busa/goverage.svg?style=svg)](https://circleci.com/gh/haya14busa/goverage)
[![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](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 packages

Flags:
-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)