alexbakker / gotchet

Test reports for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gotchet build docker image

gotchet is a test report tool for Go. It can display test results in a TUI and generate HTML reports. Its primary purpose is to make it a bit easier to analyze results of large long-running test suites that make use of subtests and have lots of log output.

Usage

Use one of the following commands to get the right test2json output from your Go tests:

For go test:

go test -json -v=test2json ./...

For test binaries (go test -c):

go tool test2json -t -p pkgname ./test-binary -test.v=test2json

Pipe the output to gotchet to generate an HTML report

go test -json -v=test2json ./... | gotchet gen > report.html

Screenshot

Screenshot

About

Test reports for Go

License:GNU General Public License v3.0


Languages

Language:Go 48.7%Language:Vue 28.5%Language:TypeScript 11.5%Language:Nix 8.4%Language:HTML 1.1%Language:CSS 1.0%Language:JavaScript 0.7%