【发布时间】:2018-12-01 22:32:11
【问题描述】:
我有以下项目结构,我想运行 go test exclude 选项来运行测试
例如运行除cmd包中的测试之外的所有测试的命令(我有超过3个包,下面的结构是一个简单的例子)
myGithubProject/
|---- cmd
|---- -command
|---- -hello.go
|---- -hello_test.go
|---- internal
|---- -fs.go
|---- -fs.go
|---- -fs_test.go
|---- -log
|---- -log.go
|---- -log_test.go
main.go
【问题讨论】:
-
go test internal/...有什么问题?