kavinsky / clover-merge
Merge two or more clover XML files.
v2.0.1
2022-01-14 11:35 UTC
Requires
- php: ^8.0
- ext-simplexml: *
- php-ds/php-ds: ^v1.4.0
- symfony/console: ^5.3
- symfony/filesystem: ^5.3
Requires (Dev)
- captainhook/captainhook: ^5.10
- kahlan/kahlan: ^5.1.3
- phan/phan: ^5.3.1
- php-coveralls/php-coveralls: ^v2.5.2
- squizlabs/php_codesniffer: ^3.6.2
Suggests
- ext-ds: to improve performance and reduce memory usage
README
This fork its updated to PHP8.0.
PHP utility to merge two or more clover files into a single document.
Intended to be used in a build pipeline to merge clover output from multiple testing frameworks.
I spent a weekend writing this so you don't have to.
Install
In your project root directory:
$ composer require kavinsky/clover-merge
Run
$ ./vendor/bin/clover-merge merge -o combined.xml input1.xml input2.xml Files Discovered: 332 Final Coverage: 14534/14558 (99.84%)
Usage
usage: clover-merge merge [<options>] [<args>]
OPTIONS
--enforce, -e Exit with failure if final coverage is below the given
threshold
--help, -? Display this help.
--mode, -m merge mode: additive, exclusive or inclusive (default)
--output, -o output file path
ARGUMENTS
paths input file paths
Modes
- Additive - Lines must be present in the first input file for them to be included.
- Exclusive - Lines must be present in all input files for them to be included.
- Inclusive - Lines from all files are included.