【发布时间】: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