Skip to content

Instantly share code, notes, and snippets.

@jinjor
Created January 11, 2021 03:16
Show Gist options
  • Save jinjor/f1af35727e8dd8728cc57c87599cac89 to your computer and use it in GitHub Desktop.
Save jinjor/f1af35727e8dd8728cc57c87599cac89 to your computer and use it in GitHub Desktop.
とりあえず mac で動いた
#!/bin/bash -euo pipefail
export GREP_OPTIONS='--color=always'
go test "$@" \
| GREP_COLOR='1;31' grep -E '.*FAIL.*|$' \
| GREP_COLOR='1;32' grep -E '.*PASS.*|$'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment