Skip to content
forked from matm/gocov-html

Produces HTML output from gocov, a coverage testing tool for the Go programming language

License

Notifications You must be signed in to change notification settings

mralves/gocov-html

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gocov HTML export

This is a simple helper tool for generating HTML output from axw/gocov.

Here is a screenshot:

HTML coverage report screenshot

Installation

Just type the following to install the program and its dependencies:

$ go get github.com/axw/gocov/gocov
$ go get -u gopkg.in/matm/v1/gocov-html

Usage

gocov-html can read a JSON file or read from standard input:

$ gocov test net/http | gocov-html > http.html

or:

$ gocov test net/http > http.json
$ gocov-html http.json > http.html

The generated HTML content comes along with a default embedded CSS. Use the -s flag to use a custom stylesheet:

$ gocov test net/http | gocov-html -s mystyle.css > http.html

About

Produces HTML output from gocov, a coverage testing tool for the Go programming language

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%