{"id":14979009,"url":"https://github.com/d0x2f/clovermerge","last_synced_at":"2025-10-28T14:30:50.311Z","repository":{"id":56961099,"uuid":"149971058","full_name":"d0x2f/CloverMerge","owner":"d0x2f","description":"Utility to merge two or more clover files into a single document.","archived":false,"fork":false,"pushed_at":"2018-12-22T00:25:09.000Z","size":107,"stargazers_count":8,"open_issues_count":1,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-11T18:41:32.872Z","etag":null,"topics":["clover","clover-files","composer-dependency","coverage","devops-tools","docker-image","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/d0x2f.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-23T09:43:45.000Z","updated_at":"2023-10-28T12:44:56.000Z","dependencies_parsed_at":"2022-08-21T05:40:15.199Z","dependency_job_id":null,"html_url":"https://github.com/d0x2f/CloverMerge","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d0x2f%2FCloverMerge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d0x2f%2FCloverMerge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d0x2f%2FCloverMerge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d0x2f%2FCloverMerge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d0x2f","download_url":"https://codeload.github.com/d0x2f/CloverMerge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219859520,"owners_count":16556036,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clover","clover-files","composer-dependency","coverage","devops-tools","docker-image","php"],"created_at":"2024-09-24T13:58:54.565Z","updated_at":"2025-10-28T14:30:45.006Z","avatar_url":"https://github.com/d0x2f.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CloverMerge\n\n[![Build Status](https://travis-ci.org/d0x2f/CloverMerge.svg?branch=master)](https://travis-ci.org/d0x2f/CloverMerge)\n[![Coverage Status](https://coveralls.io/repos/github/d0x2f/CloverMerge/badge.svg?branch=master)](https://coveralls.io/github/d0x2f/CloverMerge?branch=master)\n[![Maintainability](https://api.codeclimate.com/v1/badges/7ff86933961de446d594/maintainability)](https://codeclimate.com/github/d0x2f/CloverMerge/maintainability)\n\nPHP utility to merge two or more clover files into a single document.\n\nIntended to be used in a build pipeline to merge clover output from multiple testing frameworks.\n\nI spent a weekend writing this so you don't have to.\n\n# Standalone\n\n## Install\n\nRequires composer.\n\n```bash\n$ git clone https://github.com/d0x2f/CloverMerge.git\n$ composer install\n```\n\n## Run\n\n```bash\n$ ./clover-merge -o combined.xml input1.xml input2.xml\nFiles Discovered: 332\nFinal Coverage: 14534/14558 (99.84%)\n```\n\n# As a Composer Dependency\n\n## Install\n\nIn your project root directory:\n\n```bash\n$ composer require d0x2f/clover-merge\n```\n\n## Run\n\n```bash\n$ ./vendor/bin/clover-merge -o combined.xml input1.xml input2.xml\nFiles Discovered: 332\nFinal Coverage: 14534/14558 (99.84%)\n```\n\n# As a Docker Image\n\n## Install\n\n```bash\n$ docker pull d0x2f/clover-merge\n```\n\n## Run\n\n```bash\n$ docker run --rm -v $(pwd):/build clover-merge -o /build/combined.xml /build/input1.xml /build/input2.xml\nFiles Discovered: 332\nFinal Coverage: 14534/14558 (99.84%)\n```\n\n# Usage\n\n```\nusage: clover-merge [\u003coptions\u003e] [\u003cargs\u003e]\n\nOPTIONS\n  --enforce, -e   Exit with failure if final coverage is below the given\n                  threshold\n  --help, -?      Display this help.\n  --mode, -m      merge mode: additive, exclusive or inclusive (default)\n  --output, -o    output file path\n\nARGUMENTS\n  paths   input file paths\n```\n\n## Modes\n\n* Additive - Lines must be present in the first input file for them to be included.\n* Exclusive - Lines must be present in all input files for them to be included.\n* Inclusive - Lines from all files are included.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd0x2f%2Fclovermerge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd0x2f%2Fclovermerge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd0x2f%2Fclovermerge/lists"}