Skip to main content

XUnitMerge

Utility for merging multiple XUnit xml reports into a single xml report.

The primary purpose of this package is to be able to merge XUnit reports generated by nosetests (e.g. nosetests --with-xunit). This is especially useful when nosetests needs to be run multiple times for different parts of a project and then all reports need to be merged to a single report (similar to what coverage combine does with multiple coverage reports).

Installing

You can install xunitmerge using pip:

$ pip install xunitmerge

Or alternatively you can install the development version:

$ pip install xunitmerge==dev

Using

To use the plugin, use an executable xunitmerge which should become available after the installation.. To see it’s usage dialog, you can run it with a --help flag:

xunitmerge --help

In summary, you can provide any number of paths of reports to be merged and an output report path:

xunitmerge report1.xml report2.xml report3.xml merged.xml

You can also use it directly in Python:

from xunitmerge import merge_xunit

merge_xunit(files['report1.xml', 'report2.xml'], output='merged.xml)

Running tests

You can run tests for this package by using nose:

$ nosetests --with-doctest

Credits

Miroslav Shubernetskiy - GitHub

License

This package is licensed under 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.

Metadata

Release files for xunitmerge 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xunitmerge 1.0.4
File Size Uploaded
xunitmerge-1.0.4.tar.gz 4.8 kB Details

Release files / xunitmerge-1.0.4.tar.gz

Download URL xunitmerge-1.0.4.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
24ec3b44e7bec5177445ed4fd46a1c0fe123991d5e8fa92bdf390a004f4280d2
BLAKE2b-256 checksum
How to use checksums
2f924abb78646828ac0a9d552b0159ea017ba5ae8f738025bcbab5bf9210042c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.4 This release

1 release file

1.0.3

1 release file

1.0.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page