coverage 是否提供自己版本的 nose 插件?
Does coverage provide its own version of a nose plugin?
nose 版本 1.3.7 的文档说
Newer versions of coverage contain their own nose plugin which is superior to the builtin plugin. It exposes more of coverage’s options and uses coverage’s native html output. Depending on the version of coverage installed, the included plugin may override the nose builtin plugin, or be available under a different name. Check nosetests --help
or nosetests --plugins
to find out which coverage plugin is available on your system.
运行 nosetests --plugins --verbose 我可以看到我有插件 "coverage" 和描述 "Activate a coverage report using Ned Batchelder's coverage module."
对我来说,从这个描述中我不清楚我使用的是什么覆盖插件。
新的 nose 插件在哪个版本的覆盖范围内可用?
如何知道我是否在使用它?
真的有这样的插件吗?
今年(2016)5月Ned Batchelder似乎建议使用coverage -m nose ...
,并没有在他们的issue-tracker and on Whosebug.
中提及新插件
Coverage 从未提供过自己的鼻子插件。
请注意不再维护鼻子,因为 nose documentation states:
Nose has been in maintenance mode for the past several years and will likely cease without a new person/team to take over maintainership. New projects should consider using Nose2, py.test, or just plain unittest/unittest2.
如果一定要用nose,我继续推荐用coverage to 运行 nose:
coverage run -m nose ....
nose 版本 1.3.7 的文档说
Newer versions of coverage contain their own nose plugin which is superior to the builtin plugin. It exposes more of coverage’s options and uses coverage’s native html output. Depending on the version of coverage installed, the included plugin may override the nose builtin plugin, or be available under a different name. Check
nosetests --help
ornosetests --plugins
to find out which coverage plugin is available on your system.
运行 nosetests --plugins --verbose 我可以看到我有插件 "coverage" 和描述 "Activate a coverage report using Ned Batchelder's coverage module." 对我来说,从这个描述中我不清楚我使用的是什么覆盖插件。
新的 nose 插件在哪个版本的覆盖范围内可用?
如何知道我是否在使用它?
真的有这样的插件吗?
今年(2016)5月Ned Batchelder似乎建议使用coverage -m nose ...
,并没有在他们的issue-tracker and on Whosebug.
Coverage 从未提供过自己的鼻子插件。
请注意不再维护鼻子,因为 nose documentation states:
Nose has been in maintenance mode for the past several years and will likely cease without a new person/team to take over maintainership. New projects should consider using Nose2, py.test, or just plain unittest/unittest2.
如果一定要用nose,我继续推荐用coverage to 运行 nose:
coverage run -m nose ....