Skip to content
/ gocovsh Public
forked from orlangure/gocovsh

Go Coverage in Shell: a tool for exploring Go Coverage reports from the command line 💻

License

Notifications You must be signed in to change notification settings

muesli/gocovsh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gocovsh

gocovsh is a CLI viewer of Go test coverage reports.

Installation

$ go install github.com/orlangure/gocovsh

More installation options will follow.

Usage

  1. Generate Go coverage report at your project's root with

    $ go test -cover -coverprofile coverage.out

    For more information about generating Go coverage reports, see my blog post.

  2. Run gocovsh at the same folder with coverage.out report and go.mod file (go.mod is required).

    $ gocovsh
    $ gocovsh --profile profile.out # for other coverage profile names
  3. Use j/k/enter/esc keys to explore the report. See built-in help for more key-bindings.

image

image

About

Go Coverage in Shell: a tool for exploring Go Coverage reports from the command line 💻

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%