2017 © Pedro Peláez
 

library phpunit-merger

Merge multiple PHPUnit reports into one file

image

nimut/phpunit-merger

Merge multiple PHPUnit reports into one file

  • Tuesday, December 19, 2017
  • by IchHabRecht
  • Repository
  • 2 Watchers
  • 5 Stars
  • 5,175 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 22 % Grown

The README.md

Merge multiple PHPUnit reports into one file

Latest Stable Version StyleCI GitHub Actions, (*1)

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., (*2)

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., (*3)

Installation

Use Composer to install the testing framework., (*4)

$ composer require --dev nimut/phpunit-merger

Composer will add the package as a dev requirement to your composer.json and install the package with its dependencies., (*5)

Usage

Coverage

The coverage command merges files containing PHP_CodeCoverage objects into one file in Clover XML format., (*6)

$ vendor/bin/phpunit-merger coverage <directory> [--html=<directory>] [<file>]

Arguments, (*7)

  • directory: Directory containing one or multiple files with PHP_CodeCoverage objects
  • file: File where the merged result should be stored. Default: Standard output

Options, (*8)

  • html: Directory where the HTML report should be stored
  • lowUpperBound: (optional) The lowUpperBound value to be used for HTML format
  • highLowerBound: (optional) The highLowerBound value to be used for HTML format

Log

The log command merges files in JUnit XML format into one file in JUnit XML format., (*9)

$ vendor/bin/phpunit-merger log <directory> <file>

Arguments, (*10)

  • directory: Provides the directory containing one or multiple files in JUnit XML format
  • file: File where the merged result should be stored

The Versions

19/12 2017

dev-master

9999999-dev https://github.com/Nimut/phpunit-merger

Merge multiple PHPUnit reports into one file

  Sources   Download

GPL-2.0+

The Requires

 

phpunit typo3 cms coverage sonarqube

17/12 2017

0.1.0

0.1.0.0 https://github.com/Nimut/phpunit-merger

Merge multiple PHPUnit reports into one file

  Sources   Download

GPL-2.0+

The Requires

 

phpunit typo3 cms coverage sonarqube