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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package junit-merger-cli

JUnit merger

CircleCI codecov

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

PHP Build Version
Package Version
Requires php Version >=7.4
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sweetchuck/junit-merger-cli contains the following files

Loading the files please wait ....