A CLI tool that reads go test -json output from stdin and renders it in human-friendly formats.
go install github.com/zph/gotester/cmd/gotester@latestOr build from source:
make build # outputs to bin/gotestergo test -json ./... | gotester
go test -json ./... | gotester --mode=table
go test -json ./... | gotester --mode=line --color=false| Flag | Values | Default | Description |
|---|---|---|---|
--mode |
line, table |
line |
Output format |
--color |
true, false |
true |
ANSI color codes |
Line mode (default): Compact one-line-per-test output. All-passing packages are rolled up to a single summary line.
Table mode: Aligned table with summary counts and failure details appended.
0- All tests passed1- One or more tests failed2- Usage/parse error
Apache License 2.0. See LICENSE.