Created
March 23, 2016 14:41
-
-
Save djui/d8b2c955b20a310f6a70 to your computer and use it in GitHub Desktop.
Highlights the go test output
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 | |
sed ''/RUN/s//$(printf "\033[30;1mRUN\033[0m")/'' | \ | |
sed ''/PASS:/s//$(printf "\033[32mPASS\033[0m:")/'' | \ | |
sed ''/PASS/s//$(printf "\033[32;1mPASS\033[0m")/'' | \ | |
sed ''/SKIP:/s//$(printf "\033[33mSKIP\033[0m:")/'' | \ | |
sed ''/SKIP/s//$(printf "\033[33;1mSKIP\033[0m")/'' | \ | |
sed ''/FAIL:/s//$(printf "\033[31mFAIL\033[0m:")/'' | \ | |
sed ''/FAIL/s//$(printf "\033[31;1mFAIL\033[0m")/'' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment