https://github.com/gregoryv/gocolor
Colorize go test output and more
https://github.com/gregoryv/gocolor
terminal test testing
Last synced: about 1 year ago
JSON representation
Colorize go test output and more
- Host: GitHub
- URL: https://github.com/gregoryv/gocolor
- Owner: gregoryv
- License: mit
- Created: 2022-03-19T08:21:03.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-12T05:01:19.000Z (almost 3 years ago)
- Last Synced: 2025-02-05T07:19:30.991Z (over 1 year ago)
- Topics: terminal, test, testing
- Language: Go
- Homepage:
- Size: 1.14 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
gocolor - basic coloring of go test output

Gocolor simplifies scanning for successful or failed test cases. For
easy pipeline integration the command will use exit code 1 if a
failed test is found.
# Quick start
$ go install github.com/gregoryv/gocolor/cmd/gocolor@latest
$ go test -v ./... | gocolor

# Features
## Default
This tool was initially developed to color go test output for easy
scanning of pass-, skip- and failed tests. By default those prefixes
will be colored in a fixed set of colors.
## Custom
For any other coloring you can supply custom colors on the command line
$ echo "hello my friend" | gocolor "hello:red" "friend:green;blink;dim"
## Configured
From v0.9.0 you can configure a set of default coloring expressions in
either local .gocolor or $HOME/.gocolor file; one expression on each
line, e.g.
error:red
warning:cyan
info:green
panic:bgred;white;blink