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

app merge-junit

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

4 releases

0.1.4 Aug 9, 2022
0.1.3 Aug 9, 2022
0.1.1 Aug 8, 2022
0.1.0 Aug 8, 2022

#18 in #junit

Unlicense

26KB
668 lines

merge-junit

Merging JUnit XML files.

Installation

Via npm:

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

Downloading binaries (e.g Linux):

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

From source:

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

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

~3MB
~47K SLoC