这应该在当前目录及其所有子目录中运行所有测试:
$ go test ./...
这应该针对给定的特定目录运行所有测试:
$ go test ./tests/... ./unit-tests/... ./my-packages/...
这应该以前缀为的导入路径运行所有测试
foo/:
$ go test foo/...
这应该运行所有带有前缀的测试导入路径
foo:
$ go test foo...
这应该在$ GOPATH中运行所有测试:
$ go test ...

这应该在当前目录及其所有子目录中运行所有测试:
$ go test ./...
这应该针对给定的特定目录运行所有测试:
$ go test ./tests/... ./unit-tests/... ./my-packages/...
这应该以前缀为的导入路径运行所有测试
foo/:
$ go test foo/...
这应该运行所有带有前缀的测试导入路径
foo:
$ go test foo...
这应该在$ GOPATH中运行所有测试:
$ go test ...