用于将多个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.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何从以毫秒为单位的长度中查找以帧、字节和整数为单位的注释长度   数组Java:通过注释检查列表中是否存在属性值   java Spring数据Rest:跟踪历史表中的数据更改   网络编程Java和Google协议缓冲区:我需要一个如何在clientserver通信中使用Google协议缓冲区的示例   Java 8 stream get()在方法内部或外部可选?   用Java Android发布图片   java列表对于jsp中jsp页面上的每个重新加载项都为空   标准MBean的java描述   未生成java JSON类名   java调度任务在Spring中等待同一调度程序的其他任务   java如何将arraylist或array放入构造函数中的JList?   java如何使用Cucumber和Extent报告设置步骤状态?   将bson文档转换为字节数组java   java如何更改JOptionPane的背景色?