【问题标题】:Producing xml output with nosetests --processes使用 nosetests --processes 生成 xml 输出
【发布时间】:2012-11-09 10:07:50
【问题描述】:

我正在努力让nosetests 输出xml

我已经安装了nosexml,然后由PYTHONPATH 输入ln -s /usr/lib/python2.7/xml/etree/ elementtree

现在我可以输入nosetests -plugins 并获取包括xunit 在内的插件列表。

如果我跑了

nosetests  --with-xunit test.py

然后我得到一个包含测试结果的文件“nosetests.xml”。所以我尝试如下跑鼻子,

nosetests  --with-xunit --processes=1 --process-timeout=8000 test.py

并获取一个文件“nosetests.xml”,表明没有运行测试。

<?xml version="1.0" encoding="UTF-8"?><testsuite name="nosetests" tests="0" errors="0" failures="0" skip="0"></testsuite>

我可以将--with-xunit 与其他选项一起使用吗?

【问题讨论】:

    标签: python unit-testing nose


    【解决方案1】:

    最近出现了解决方案 - xunitmp。已选中 - 对我有用。

    【讨论】:

      【解决方案2】:

      是xunit插件中的bug。 据我所知,它并没有修复,所以目前无法同时使用 --processes--with-xunit 选项。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2017-08-13
        • 1970-01-01
        • 2015-05-26
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-05-23
        • 1970-01-01
        相关资源
        最近更新 更多