Last Updated: November 03, 2017
·
1.742K
· jphenow

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