When I run go test, my output:
go test
--- FAIL: TestGETSearchSuccess (0.00s) Location: drivers_api_test.go:283 Error: No
The best way to achieve that is to create a TestMain, as presented here.
TestMain
import ( "testing" "os" ) func TestMain(m *testing.M) { // Do your stuff here os.Exit(m.Run()) }