我正在努力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
与其他选项一起使用吗?