Merging JUnit XML files.
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
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
$ git clone https://github.com/tobni/merge-junit
$ cd merge-junit
$ cargo test