Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/d0x2f/clovermerge
Utility to merge two or more clover files into a single document.
https://github.com/d0x2f/clovermerge
clover clover-files composer-dependency coverage devops-tools docker-image php
Last synced: 26 days ago
JSON representation
Utility to merge two or more clover files into a single document.
- Host: GitHub
- URL: https://github.com/d0x2f/clovermerge
- Owner: d0x2f
- License: mit
- Created: 2018-09-23T09:43:45.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-22T00:25:09.000Z (almost 6 years ago)
- Last Synced: 2024-10-11T18:41:32.872Z (26 days ago)
- Topics: clover, clover-files, composer-dependency, coverage, devops-tools, docker-image, php
- Language: PHP
- Homepage:
- Size: 104 KB
- Stars: 8
- Watchers: 3
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CloverMerge
[![Build Status](https://travis-ci.org/d0x2f/CloverMerge.svg?branch=master)](https://travis-ci.org/d0x2f/CloverMerge)
[![Coverage Status](https://coveralls.io/repos/github/d0x2f/CloverMerge/badge.svg?branch=master)](https://coveralls.io/github/d0x2f/CloverMerge?branch=master)
[![Maintainability](https://api.codeclimate.com/v1/badges/7ff86933961de446d594/maintainability)](https://codeclimate.com/github/d0x2f/CloverMerge/maintainability)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.
# Standalone
## Install
Requires composer.
```bash
$ git clone https://github.com/d0x2f/CloverMerge.git
$ composer install
```## Run
```bash
$ ./clover-merge -o combined.xml input1.xml input2.xml
Files Discovered: 332
Final Coverage: 14534/14558 (99.84%)
```# As a Composer Dependency
## Install
In your project root directory:
```bash
$ composer require d0x2f/clover-merge
```## Run
```bash
$ ./vendor/bin/clover-merge -o combined.xml input1.xml input2.xml
Files Discovered: 332
Final Coverage: 14534/14558 (99.84%)
```# As a Docker Image
## Install
```bash
$ docker pull d0x2f/clover-merge
```## Run
```bash
$ docker run --rm -v $(pwd):/build clover-merge -o /build/combined.xml /build/input1.xml /build/input2.xml
Files Discovered: 332
Final Coverage: 14534/14558 (99.84%)
```# Usage
```
usage: clover-merge [] []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 pathARGUMENTS
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.