Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vannadii/gocovrpt
A simple, yet powerful coverage reporter for go
https://github.com/vannadii/gocovrpt
coverage coverage-report go golang
Last synced: about 2 months ago
JSON representation
A simple, yet powerful coverage reporter for go
- Host: GitHub
- URL: https://github.com/vannadii/gocovrpt
- Owner: VannaDii
- License: mit
- Created: 2023-05-07T20:02:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-14T22:13:20.000Z (over 1 year ago)
- Last Synced: 2024-04-25T00:45:34.380Z (8 months ago)
- Topics: coverage, coverage-report, go, golang
- Language: Go
- Homepage:
- Size: 140 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GoCovRpt
A `go` coverage reporter.
## Install
```sh
go install github.com/giocirque/gocovrpt
```## Uninstall
```sh
rm "$(command -v gocovrpt)"
```## Example
```text
❯ gocovrpt -hgocovrpt is a CLI application that creates code coverage reports in multiple
formats like HTML, JSON, XML, TEXT, etc. with convenience options for generating
summaries, badges, and an isolated value useful in CI/CD control.The input file MUST always be the last argument, and can support multiples separated by a space.
Usage:
gocovrpt [flags]Examples:
$ gocovrpt -f html -l [full|summary] -o ./coverage -i ./.build/coverage.raw
$ gocovrpt -f badge -o ./coverage.svg -i ./.build/coverage.raw
$ gocovrpt -f value -o ./covered -i ./.build/coverage.rawFlags:
-f, --format string Report format. Available formats: html, badge, value (default "html")
-h, --help help for gocovrpt
-i, --input stringArray One or more coverage.raw files to read from. (default [./.build/coverage.raw])
-l, --level string Report level. Available levels: full, summary (default "full")
-o, --output string Output file or directory. For badges, the default is ./.build/coverage.svg. (default "./.build/coverage")
-p, --project string The name of the project.
-s, --source string The directory containing the covered source files. (default $PWD)
```