这是一前一后详述Python中的CI设置。提问者和应答者细节使用并用哈德森为其建立的 NoseXUnit 。然而, NoseXUnit 当在任何源文件夹中运行时会引发错误,其中的初始化的.py存在:

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 的?

打交道时失踪
有帮助吗?

解决方案

您可能不应该使用NoseXUnit - 它真的过时了,而类似的功能在鼻子存在> = 0.11

从鼻子--help:

  --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 /鼻XML / - 就是这样成为了--with-的xUnit选项的插件

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top