https://github.com/danawoodman/gtc
🧪 A simple wrapper for the go test command that colorizes test output
https://github.com/danawoodman/gtc
cli color developer-tools go golang testing tests
Last synced: over 1 year ago
JSON representation
🧪 A simple wrapper for the go test command that colorizes test output
- Host: GitHub
- URL: https://github.com/danawoodman/gtc
- Owner: danawoodman
- License: mit
- Created: 2024-02-26T00:52:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-05T20:13:27.000Z (about 2 years ago)
- Last Synced: 2025-03-23T23:16:52.608Z (over 1 year ago)
- Topics: cli, color, developer-tools, go, golang, testing, tests
- Language: Go
- Homepage:
- Size: 149 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.

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](https://github.com/danawoodman/gtc/releases) for your platform and add it to your path.
Or just install with Golang:
```bash
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`.
```bash
# single test run
gtc ./...
# with flags
gtc -v ./...
```
## License
[MIT](LICENSE)