Mat*_*ris 4 python web2py nose package nosetests
这是前一篇文章,详细介绍了Python的CI设置.提问者和回答者详细说明了Nose和NoseXUnit与Hudson在构建中的使用.但是,在存在init .py的任何源文件夹上运行时,NoseXUnit会引发错误:
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
Run Code Online (Sandbox Code Playgroud)
我想不出我的源文件夹也不是包.在处理NoseXUnit时,我是否缺少一个步骤?
你可能不应该使用NoseXUnit - 它确实已经过时了,而且在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]
Run Code Online (Sandbox Code Playgroud)
如果由于某种原因你需要一个旧版本的鼻子,请使用http://bitbucket.org/durin42/nose-xml/ - 这就是成为--with-xunit选项的插件.