Created
March 9, 2016 18:01
-
-
Save jphenow/d023c0438e8aa241b677 to your computer and use it in GitHub Desktop.
Run all go tests in a project without running through vendor dir
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
# ... | |
gta() { | |
base=$(echo $PWD | sed "s|$GOPATH/src/||") | |
go test $(go list ./... | grep -v vendor | sed "s|$base/|./|") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment