所以我有一个名为“test”的目录,里面还有几个目录,里面有很多测试。如何添加这样的模式,以便鼻子测试确定这些测试并运行它?
问问题
180 次
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 回答