urusna
Last Updated: November 03, 2017
·
1.055K
· jphenow
76bb44a71bc3f3a7037a39d69ae026e7

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

Say Thanks
Respond
Filed Under