/gtc

🧪 A simple wrapper for the go test command that colorizes test output

Primary LanguageGoMIT LicenseMIT

gtc - golang test colors

A simple colorizer wrapper for the go test command

Go's default test output is uncolored and can be hard to read. This simple wrapper adds color to the output by piping the stdout and stderr of the go test command and outputting ansii colorized text.

screenshot

This should work on any platform that supports ansii color codes, including Windows.

gtc uses your system's go command to run tests, so it should work with any version of Go.

Installation

Download a release for your platform and add it to your path.

Or just install with Golang:

go install github.com/danawoodman/gtc@latest

Usage

Just replace go test with gtc in your test commands. All flags will be passed as-is to go test.

# single test run
gtc ./...

# with flags
gtc -v ./...

License

MIT