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
- Host: GitHub
- URL: https://github.com/patrickhoefler/gocovergate
- Owner: patrickhoefler
- License: mit
- Created: 2021-12-29T19:34:43.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-11-23T19:06:44.000Z (about 2 years ago)
- Last Synced: 2024-06-20T19:24:08.551Z (over 1 year ago)
- Topics: ci, code, code-coverage, code-quality, continuous-integration, coverage, go, golang, qa, quality
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)