tparse 
A command line tool for analyzing and summarizing go test output.
Don't forget to run go test with -json flag.
| Pass |
Fail |
 |
 |
By default, tparse will always return a summary box containing package-level details followed by errors, if any.
To get the summary of passed tests run tparse with the -pass flag. Tests will be grouped by package and sorted by elapsed time (longest to shorted).
Installation
go get github.com/mfridman/tparse
Usage
Once tparse is installed there are 2 ways to use it:
- Run
go test as you normally would, but add the -json flag and pipe the output to tparse.
Example:
go test fmt -json | tparse -all
- Save the output of
go test with the -json flag into a file and call tparse with filename as an argument.
go test fmt -json > fmt.out
tparse -all fmt.out
Tip: run tparse -h to get usage and options.