My project folder contains:
Makefile README.md component/ driver/ service/ vendor/ worker/
I\'d like to run go test on a
The -run pattern is matched only against the test identifier (not the filename); in principle you could do:
go test -run TestFoo
but when you'd have to add Foo to all your test function names, which you probably don't want.
The ... wildcard excludes the ./vendor directory since Go 1.9, so you can now just run go test ./... and it won't include ./vendor.