Created
January 11, 2021 03:16
-
-
Save jinjor/f1af35727e8dd8728cc57c87599cac89 to your computer and use it in GitHub Desktop.
とりあえず mac で動いた
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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