问题描述
这是上一篇文章,其中详细介绍了Python的CI设置.询问者和应答者详细说明了将 Nose 和 NoseXUnit 与Hudson一起使用的情况.但是, NoseXUnit 在存在 init .py的任何源文件夹上运行时都会引发错误:
This is a previous post detailing a CI setup for Python. The asker and answerer detail the use of Nose and NoseXUnit with Hudson for their builds. However, NoseXUnit throws an error when run on any source folder where init.py is present:
File "build/bdist.linux-x86_64/egg/nosexunit/tools.py", line 59,
in packages nosexunit.excepts.ToolError: following folder can not contain
__init__.py file: /home/dev/source/web2py/applications
我想不到我的源文件夹也不是软件包.在处理 NoseXUnit 时,我是否缺少步骤?
I can't think of a source folder of mine that is not a package also. Is there a step I am missing when dealing with NoseXUnit?
推荐答案
您可能不应该使用NoseXUnit-它确实已经过时,并且鼻子> = 0.11中存在类似的功能.
You probably shouldn't use NoseXUnit - it's really out of date, and a similar feature exists in nose >= 0.11.
从鼻子-帮助:
--with-xunit Enable plugin Xunit: This plugin provides test results
in the standard XUnit XML format. [NOSE_WITH_XUNIT]
--xunit-file=FILE Path to xml file to store the xunit report in. Default
is nosetests.xml in the working directory
[NOSE_XUNIT_FILE]
如果出于某些原因您需要旧版的鼻子,请使用 http://bitbucket.org/durin42/nose-xml/-这就是成为--with-xunit选项的插件.
if for some reason you need an old version of nose, use http://bitbucket.org/durin42/nose-xml/ - that's the plugin that became the --with-xunit option.
这篇关于使用鼻子和Python软件包上的NoseXUnit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!