#junit #xml-document #xml #report #command-line-tool

app merge-junit

CLI utility to merge JUnit compliant XML documents into a single XML document

5 releases

0.2.1 Jul 6, 2024
0.1.4 Aug 9, 2022
0.1.3 Aug 9, 2022
0.1.1 Aug 8, 2022
0.1.0 Aug 8, 2022

#392 in Command line utilities

Download history 1414/week @ 2024-09-25 2338/week @ 2024-10-02 1297/week @ 2024-10-09 853/week @ 2024-10-16 1450/week @ 2024-10-23 2732/week @ 2024-10-30 2096/week @ 2024-11-06 1366/week @ 2024-11-13 2557/week @ 2024-11-20 1039/week @ 2024-11-27 2078/week @ 2024-12-04 2456/week @ 2024-12-11 692/week @ 2024-12-18 231/week @ 2024-12-25 845/week @ 2025-01-01 2604/week @ 2025-01-08

4,376 downloads per month

Unlicense

27KB
685 lines

merge-junit

Merging JUnit XML files.

Installation

Via npm:

$ npm i merge-junit
$ npx merge-junit --version
merge-junit 0.2.1

Downloading binaries (e.g Linux):

$ curl -L https://github.com/tobni/merge-junit/releases/download/v0.2.1/merge-junit-v0.2.1-x86_64-unknown-linux-musl.tar.gz | tar -xz
$ ./merge-junit-v0.2.1-x86_64-unknown-linux-musl/merge-junit --version
merge-junit 0.2.1

From source:

$ git clone https://github.com/tobni/merge-junit
$ cd merge-junit
$ cargo build --release
$ ./target/release/merge-junit --version
merge-junit 0.2.1

Usage example

Some test runners run in parallel and produce many small JUnit reports. Stitching them together to feed a GUI / reporting application can increase readability.

$ merge-junit *.xml -o merged-tests.xml

Development setup

Uses rustfmt and clippy.

$ git clone https://github.com/tobni/merge-junit
$ cd merge-junit
$ cargo test

Dependencies

~2.5MB
~38K SLoC