Skip to content

Instantly share code, notes, and snippets.

@jphenow
Created March 9, 2016 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jphenow/d023c0438e8aa241b677 to your computer and use it in GitHub Desktop.
Save jphenow/d023c0438e8aa241b677 to your computer and use it in GitHub Desktop.
Run all go tests in a project without running through vendor dir
# ...
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