Nosetests缺少命令行选项

时间:2017-08-22 08:59:19

标签: python nose

在命令行选项

之后使用nose 1.3.7和文档列表
  

- xunit-prefix-with-testsuite-name 是否使用testsuite名称为测试中的类名添加前缀。默认为false。

文档可在以下网址获得: https://nose.readthedocs.io/en/latest/usage.html

但是当我试图使用它时,我得到错误:

  

nosetests:错误:没有这样的选项: - xunit-prefix-with-testsuite-name

我有什么遗失的吗?

1 个答案:

答案 0 :(得分:1)

经过一些研究,我发现它不在1.3.7鼻孔释放中。

如果您查看他们的github存储库,则该选项已于2015年11月添加。

https://github.com/nose-devs/nose/commits/master/nose/plugins/xunit.py

如果查看他们的发行版,您会看到1.3.7已于当年6月初发行。

https://github.com/nose-devs/nose/releases/tag/release_1.3.7

我注意到您执行此操作时已启用该选项

nosetests --with-xunit --xunit-testsuite-name=MYTESTSUITE