Test all Go packages in a project without testing vendor
Put this in an RC of your choice
gta() {
base=$(echo $PWD | sed "s|$GOPATH/src/||")
go test $(go list ./... | grep -v vendor | sed "s|$base/|./|")
}
then you can run gta
to test all Go tests without running vendor'd projects
Written by Jon Phenow
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Golang
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#