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

https://github.com/patrickhoefler/gocovergate

Simple Go code coverage quality gate
https://github.com/patrickhoefler/gocovergate

ci code code-coverage code-quality continuous-integration coverage go golang qa quality

Last synced: 9 days ago
JSON representation

Simple Go code coverage quality gate

Awesome Lists containing this project

README

          

# gocovergate

`gocovergate` is a simple tool that acts as a code coverage quality gate.

It expects a `cover.out` file to be present in the current directory.

When executed, it will print the total code coverage.
If it is below 80%, it will exit with a status code of 1.

## Installation

```text
go install github.com/patrickhoefler/gocovergate@latest
```

## Usage

```text
go test ./... --coverprofile cover.out
gocovergate
```

## License
[MIT](LICENSE)