finds.dev

rakyll/gotest

go test with colors

View on GitHub

★ 1,398GoBSD-3-Clauseupdated Jan 2026

// the take

A drop-in wrapper around `go test` that colorizes pass/fail output. It pipes go test's output through a regex parser and rewrites lines with ANSI colors. Useful if you run tests in a terminal and want faster visual scanning.

Genuinely zero friction to adopt — it's a transparent wrapper, so every flag you pass to `go test` works unchanged. The `GOTEST_PALETTE` env var for customizing colors is a small but thoughtful touch. CI detection that auto-enables colors on Travis, AppVeyor, GitLab, and CircleCI means you don't have to configure it per environment. The codebase is tiny (essentially one file), so there's nothing to go wrong.

This is a solved problem in 2026 — `gotestsum` does this and much more (JUnit output, watch mode, summary formatting), and most teams have already moved to it. The repo is a single `main.go` with no tests of its own, which is a little ironic. No support for `go test -json` output format, so you can't pipe results to other tools cleanly. At 1400 stars and 64 forks over many years, it's more of a personal utility that went public than a maintained project.

We read the README, the directory tree and a key source file in July 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
1,398
Forks
64
Language
Go
License
BSD-3-Clause
Last commit
10 Jan 2026

// nearby

If gotest isn't quite it.

All repos →