Problems installing NoseXUnit

≡放荡痞女 提交于 2019-12-22 13:59:03

问题


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

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)

Is that issue? Also, pip install coverage==2.85 doesn't work.

What can I do in order to fix nose to work with NoseXUnit?

Any alternative for xml based reports framework is also welcomed (jenkins purposes).


回答1:


nose supports xunit output with built-in plugin, just try --with-xunit



来源:https://stackoverflow.com/questions/20730754/problems-installing-nosexunit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!