我有一个要移植到nose2的nose.cfg文件。我在the nose2 docs中看不到任何忽略文件或目录的方法。
在步骤1中,这是通过以下两个标志完成的:
ignore-files=settings_test*
exclude-dir=ignorethisdir在nose2中如何做到这一点呢?
发布于 2014-12-04 05:20:05
在安装-exclude时,可以使用exclude-dir目录。此插件当前仅适用于nose1:https://bitbucket.org/kgrandis/nose-exclude/overview
可用的是定义:
__test__ = False
在每个TestCase或TestSuite继承类中。
它们必须从这些类继承,才能正常工作。这是由nose2附带的dundertest插件提供的,默认情况下是启用的。
发布于 2019-06-26 16:27:28
https://stackoverflow.com/questions/20180657
复制相似问题