sweetchuck / coverage-merger-cli
CLI tool to merge two or more coverage report files into one.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 1
Type:project
Requires
- php: >=7.4
- ext-json: *
- psr/log: ^1.1
- sweetchuck/coverage-merger: 2.x-dev
- symfony/console: ^5.1
- symfony/dependency-injection: ^5.3
Requires (Dev)
- codeception/codeception: ^4.1
- codeception/module-asserts: ^2.0
- codeception/module-cli: ^2.0
- consolidation/robo: ^3.0
- mikey179/vfsstream: ^1.6
- nuvoleweb/robo-config: 2.x-dev
- phpmd/phpmd: ^2.11
- squizlabs/php_codesniffer: ^3.6
- sweetchuck/composer-suite: 1.x-dev
- sweetchuck/git-hooks: 2.x-dev
- sweetchuck/robo-composer: 2.x-dev
- sweetchuck/robo-git: 2.x-dev
- sweetchuck/robo-phpcs: 2.x-dev
- sweetchuck/robo-phpmd: 2.x-dev
- symfony/error-handler: ^5.3
- symfony/finder: ^5.3
- symfony/yaml: ^5.4
README
CLI tool to merge two or more coverage report files into one.
Requirements
- PHP
>=7.4
- The input coverage report PHP files generated by
phpunit/php-code-coverage ^9.0
For support of phpunit/php-code-coverage <9.0
check branch 1.x
Install as dependency
composer require --dev 'sweetchuck/coverage-merger-cli'
Install independently
- Download the
coverage-merger.phar
from the latest release -
mv ~/Downloads/coverage-merger.phar ~/bin/coverage-merger chmod +x ~/bin/coverage-merger
Usage
phpunit --coverage-php='reports/coverage/ATest.php' 'tests/src/Unit/ATest.php' phpunit --coverage-php='reports/coverage/BTest.php' 'tests/src/Unit/BTest.php' phpunit --coverage-php='reports/coverage/CTest.php' 'tests/src/Unit/CTest.php' coverage-merger merge:files \ 'reports/coverage/ATest.php' \ 'reports/coverage/BTest.php' \ 'reports/coverage/CTest.php' \ > 'reports/coverage.php' # or find ./reports/coverage/ -type f | coverage-merger merge:files --output-file='./reports/coverage.php'