Go: how to run tests for multiple packages?
问题 I have multiple packages under a subdirectory under src/, running the tests for each package with go test is working fine. When trying to run all tests with go test ./... the tests are running but it fails.. the tests are running against local database servers, each test file has global variables with db pointers. I tried to run the tests with -parallel 1 to prevent contention in the db, but the tests still fail. what can be the issue here? EDIT: some tests are failing on missing DB entries,