{"repo":"msoap/go-carpet","free":true,"listed":false,"github":"https://github.com/msoap/go-carpet","clone":"git clone https://github.com/msoap/go-carpet.git","description":"Tool for show test coverage in terminal for Go source files","language":"Go","stars":251,"topics":["golang","test-coverage","cli","unittest"],"license":"MIT","category":"cli-tools","readme_excerpt":"go-carpet - show test coverage for Go source files ================================================== To view the test coverage in the terminal, just run go-carpet . It works outside of the GOPATH directory. And it works recursively for multiple packages. With -256colors option, shades of green indicate the level of coverage. By default skip vendor directories (Godeps,vendor), otherwise use -include-vendor option. The -mincov option allows you to specify a coverage threshold to limit the files to be displayed. Usage ----- usage: go-carpet [options] [paths] -256colors use more colors on 256-color terminal (indicate the level of coverage) -args string pass additional arguments for go test -file string comma-separated list of files to test (default: all) -func string comma-separated functions list (default: all functions) -include-vendor include vendor directories for show coverage (Godeps, vendor) -mincov float coverage threshold of the file to be displayed (in percent) (default 100) -summary only show summary for each file -version get version For view coverage in less, use -R option: go-carpet less -R Install ------- From source: go install github.com/msoap/go-carpet@latest Download binaries from: releases (OS X/Linux/Windows) Install from homebrew (OS X): brew tap msoap/tools brew install go-carpet # update: brew upgrade go-carpet Screenshot See also -------- blog.golang.org - the cover story gocover.io - simple Go test coverage service coveralls.io - test coverage service p","default_branch":null,"files":null,"tree":[],"storefront":"/r/msoap","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/msoap/go-carpet/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}