安装NoseXUnit时出现问题 [英] Problems installing NoseXUnit
问题描述
我尝试使用pip安装NoseXUnit.尝试使用它进行鼻子测试结束时,出现以下错误消息:
I tried to install NoseXUnit using pip. Trying to run nosetests with it ends with the following error message:
# nosetests --with-nosexunit
/usr/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/plugins/manager.py:395: RuntimeWarning: Unable to load plugin nosexunit = nosexunit.plugin:NoseXUnit: (coverage 3.7.1 (/usr/lib/python2.7/site-packages), Requirement.parse('coverage==2.85'))
RuntimeWarning)
Usage: nosetests [options]
nosetests: error: no such option: --with-nosexunit
因此,似乎覆盖"版本存在问题-我的版本为3.7.1,出于某种原因,它需要2.85:
So it seems like there's a problem with "coverage" version - I have version 3.7.1 and for some reason it requires 2.85:
# nosetests --help | grep -i nosex
/usr/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/plugins/manager.py:395: RuntimeWarning: Unable to load plugin nosexunit = nosexunit.plugin:NoseXUnit: (coverage 3.7.1 (/usr/lib/python2.7/site-packages), Requirement.parse('coverage==2.85'))
RuntimeWarning)
那是问题吗?另外,pip install coverage==2.85
不起作用.
Is that issue? Also, pip install coverage==2.85
doesn't work.
我该怎么做才能使鼻子与NoseXUnit配合使用?
What can I do in order to fix nose to work with NoseXUnit?
也欢迎使用任何基于xml的报告框架的替代方法(jenkins的目的).
Any alternative for xml based reports framework is also welcomed (jenkins purposes).
推荐答案
鼻子支持具有内置插件的xunit输出,只需尝试--with-xunit
nose supports xunit output with built-in plugin, just try --with-xunit
这篇关于安装NoseXUnit时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!