gotestpp (gotest++) runs tests using go test -json, prints formatted test output similar to the original
and a summary at the end. Its main purpose is to make test failures easier to understand. It also parses Testify assertions, adding colors and slightly modifying the output format.
- Colored output
- Support for testify assertions
- Logs are printed only if they originate from failed tests
- Summary
Print order:
- Passed packages
- Skipped tests
- Failed tests
- Errors (build errors or when
gotestppfails to run) - Summary
go install github.com/joaopsramos/gotestpp@latestSimply use gotestpp instead of go test:
gotestpp ./...Note
Even though all flags that work with go test are accepted by gotestpp, some outputs may not appear due to the way Go provides test events.
You can also pipe the output to gotestpp:
go test ./... -json | gotestppImportant
If piping go test output, the -json flag must be included.
There are incredible tools that do something similar, but I wanted one that makes failures easier to understand, especially by improving (in my opinion, of course) the output of Testify assertions.

