Skip to content

Instantly share code, notes, and snippets.

@joncalhoun
Created July 8, 2018 16:19
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joncalhoun/d0d765b9485de9cbd6949afbcde9ee04 to your computer and use it in GitHub Desktop.
Save joncalhoun/d0d765b9485de9cbd6949afbcde9ee04 to your computer and use it in GitHub Desktop.
gotest() {
go test $* | sed ''/PASS/s//$(printf "\033[32mPASS\033[0m")/'' | sed ''/FAIL/s//$(printf "\033[31mFAIL\033[0m")/'' | sed ''/FAIL/s//$(printf "\033[31mFAIL\033[0m")/'' | GREP_COLOR="01;33" egrep --color=always '\s*[a-zA-Z0-9\-_.]+[:][0-9]+[:]|^'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment