Converts `go test` output into a prettified HTML summary.
Go
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib fmt Oct 21, 2016
template Add quick rerun command w/ clipboard copy Oct 21, 2016
.gitattributes Initial Commit Sep 17, 2016
.gitignore Initial Commit Sep 17, 2016
.travis.yml Update .travis.yml Oct 14, 2016
LICENSE Initial Commit Sep 17, 2016
README.md Update README.md Oct 14, 2016
go-test-html Add quick rerun command w/ clipboard copy Oct 21, 2016
go-test-html.go fmt Oct 21, 2016

README.md

go-test-html

Build Status

Converts go test output into a prettified HTML summary.

Example HTML output

Installation

Go version 1.1 or higher is required. Install or update using the go get command:

go get -u github.com/ains/go-test-html

Usage

The go-test-html command takes in files containing the stdout and stderr from the go test command and the location of the HTML file to write.

go-test-html [gotest_stdout_file] [gotest_stderr_file] [output_file]

To produce the gotest_stdout_file and gotest_stderr_file without changing the output of your go test runs, use the following command.

go test ./... -v 2> >(tee [gotest_stderr_file]) | tee [gotest_stdout_file]