goverage

module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2026 License: MIT

README

goverage

goverage is a TUI code coverage profiles viewer.

Installation

The easiest way to integrate goverage into a project is to add it as a tool directive in its go.mod file:

go get -tool codeberg.org/pinicarus/goverage/cmd/goverage@latest

and then use it through the go tool goverage command.

Usage

Generate a coverage profile from the go test command and feed it to goverage.

$ go test -coverprofile=profile.txt ./...
$ go tool goverage profile.txt

Options

$ go tool goverage --help
Usage of goverage:
  -covered value
    	Covered color (default #008000)
  -debug
    	log more details
  -mod string
    	mod file used to resolve source code location (default "go.mod")
  -tabs uint
    	Tabs rendering width (default 3)
  -uncovered value
    	Uncovered color (default #800000)

Directories

Path Synopsis
cmd
goverage command
internal
tests/handler
Package tests provides helpers to simplify unit testing of slog records.
Package tests provides helpers to simplify unit testing of slog records.
pkg
cache
Package cache provides caching of single values.
Package cache provides caching of single values.
file
Package file provides helpers to locate files based on their import path.
Package file provides helpers to locate files based on their import path.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL