1

所以我有一个名为“test”的目录,里面还有几个目录,里面有很多测试。如何添加这样的模式,以便鼻子测试确定这些测试并运行它?

4

1 回答 1

2

您可以nosetests使用选项 运行-i --include

-i REGEX, --include=REGEX
                      This regular expression will be applied to files,
                      directories, function names, and class names for a
                      chance to include additional tests that do not match
                      TESTMATCH.  Specify this option multiple times to add
                      more regular expressions [NOSE_INCLUDE]
于 2012-08-10T20:15:56.277 回答