Skip to content

zph/gotester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gotester

A CLI tool that reads go test -json output from stdin and renders it in human-friendly formats.

Install

go install github.com/zph/gotester/cmd/gotester@latest

Or build from source:

make build   # outputs to bin/gotester

Usage

go test -json ./... | gotester
go test -json ./... | gotester --mode=table
go test -json ./... | gotester --mode=line --color=false

Flags

Flag Values Default Description
--mode line, table line Output format
--color true, false true ANSI color codes

Output Modes

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.

Exit Codes

  • 0 - All tests passed
  • 1 - One or more tests failed
  • 2 - Usage/parse error

License

Apache License 2.0. See LICENSE.

About

Golang test digester for nicer outputs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors