用于将多个Xunit XML报表合并为单个XML报表的实用程序。
xunitmerge的Python项目详细描述
用于将多个Xunit XML报表合并为单个XML报表的实用程序。
这个包的主要目的是能够合并xunit报表 由nosetest生成(例如nosetests --with-xunit)。尤其是 当鼻测试需要对不同部分运行多次时非常有用 一个项目,然后所有报表都需要合并到一个报表中 (类似于coverage combine对多个coverage报告所做的操作)。
安装
您可以使用pip:
安装xunitmerge。$ pip install xunitmerge
或者您也可以安装 development 版本:
$ pip install xunitmerge==dev
使用
要使用该插件,请使用一个应该成为 安装后可用。 要查看它的用法对话框,可以使用--help标志运行它:
xunitmerge --help
总之,您可以提供任意数量的要合并的报表路径, 输出报告路径:
xunitmerge report1.xml report2.xml report3.xml merged.xml
您也可以在python中直接使用它:
from xunitmerge import merge_xunit merge_xunit(files['report1.xml', 'report2.xml'], output='merged.xml)
运行测试
您可以使用nose:
$ nosetests --with-doctest
学分
米罗斯拉夫·舒伯内茨基-GitHub
许可证
此软件包是根据MIT授权的。
The MIT License (MIT) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.