仅从软件包中测试一些功能/套件

问题描述:

Is it possible to split testing process in go for some package ? go test package - uses all function Test* in all *_test.go files in package. If you have a lot of tests and try to TDT its rather boring to receive always all test logs.

是否可以在某些软件包中拆分测试过程? go测试软件包-在其中使用所有功能Test * 软件包中的所有* _test.go文件。 如果您有很多测试并且尝试TDT,那么接收所有测试日志总是很无聊。 p> div>

See 'go help test' and 'go help testflag'. Quoting from the later:

...

-run regexp
    Run only those tests and examples matching the regular
    expression.
...