Download the PHP package sweetchuck/junit-merger-cli without Composer
On this page you can find all versions of the php package sweetchuck/junit-merger-cli. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sweetchuck/junit-merger-cli
More information about sweetchuck/junit-merger-cli
Files in sweetchuck/junit-merger-cli
Package junit-merger-cli
Short Description CLI tool to merge two or more JUnit XML files into one.
License GPL-3.0-or-later
Homepage https://github.com/Sweetchuck/junit-merger-cli
Informations about the package junit-merger-cli
JUnit merger
As the name suggests this CLI tool helps to merge two or more JUnit XML files into one. \ Under the hood it uses the JUnit merger library.
Usage
By default it reads the input file names from stdIn line by line, and puts the result XML content to the stdOutput. \ So the basic usage:
The input file names also can be provided as arguments. Like this:
The merged XML content can be put into a file by using standard shell redirections. Like this:
Or by using the --output-file
CLI option. Like this:
Usage - handlers
Handlers are responsible for read and parse the input files and generate the merged XML content. \
To which handler should be used can be controlled by the --handler
option. Like this:
There are three available option
Usage - handler - dom_read_write
With this handler the input files are parsed with \DOMDocument and the output is also generated with it. \
It is safe and reliable, but resource heavy. \
On the other hand this handler recalculates all the <testsuite tests assertions errors warnings failures skipped time />
attributes. \
This might come handy when multiple <testcase />
comes from different input files and they are belong to the same <testsuite />
.
Usage - handler - dom_read
With this handler the input files are parsed with \DOMDocument and the output is generated with string concatenation.
Usage - handler - substr
The input files have to be in the same format in the terms of the position of the opening <testsuites>
tag and the closing </testsuites>
tag. \
These position parsed from the first input file and the same positions will be used for the remaining input files. \
Usually the input files are come from the same source – for example PHPUnit – so their format is identical.
All versions of junit-merger-cli with dependencies
ext-json Version *
psr/log Version ^1.1
sweetchuck/junit-merger Version 1.x-dev
symfony/console Version ^5.1 || ^6.0
symfony/dependency-injection Version ^5.3 || ^6.0