Download the PHP package mjkruszewski/phpunit-merger without Composer
On this page you can find all versions of the php package mjkruszewski/phpunit-merger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mjkruszewski/phpunit-merger
More information about mjkruszewski/phpunit-merger
Files in mjkruszewski/phpunit-merger
Package phpunit-merger
Short Description Merge multiple PHPUnit reports into one file
License GPL-2.0+
Homepage https://github.com/Nimut/phpunit-merger
Informations about the package phpunit-merger
Merge multiple PHPUnit reports into one file
Sometimes it is necessary to run multiple PHPUnit instances to execute all tests of a project. Unfortunately each run writes its own coverage and log reports. There is no support in PHPUnit to merge the reports of multiple runs.
This project provides two commands to merge coverage files as well as log files. It was designed to provide merged reports to e.g. SonarQube Scanner for further processing.
Installation
Use Composer to install the testing framework.
Composer will add the package as a dev requirement to your composer.json and install the package with its dependencies.
Usage
Coverage
The coverage command merges files containing PHP_CodeCoverage objects into one file in Clover XML format.
Arguments
directory
: Provides the directory containing one or multiple files with PHP_CodeCoverage objectsoutput
: Output where the merged result should be stored. This can be a filefoo.xml
or directory nametype
: Output type default value isclover
. This can beclover
orhtml
Log
The log command merges files in JUnit XML format into one file in JUnit XML format.
Arguments
directory
: Provides the directory containing one or multiple files in JUnit XML formatfile
: File where the merged result should be stored
All versions of phpunit-merger with dependencies
ext-dom Version *
ext-json Version *
ext-simplexml Version *
phpunit/php-code-coverage Version ^5.0 || ^6.0
symfony/console Version ^3.0 || ^4.0
symfony/finder Version ^3.0 || ^4.0