Skip to content

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

License

Notifications You must be signed in to change notification settings

danawoodman/gtc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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