{"id":20310140,"url":"https://github.com/phpro/grumphp-combined-coverage-extension","last_synced_at":"2026-01-05T19:08:21.515Z","repository":{"id":257357860,"uuid":"858023580","full_name":"phpro/grumphp-combined-coverage-extension","owner":"phpro","description":"Combine multiple PHP coverage into a single clover XML before executing a clover check.","archived":false,"fork":false,"pushed_at":"2024-09-16T08:45:13.000Z","size":2351,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-19T17:54:31.618Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/phpro.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-16T07:00:10.000Z","updated_at":"2024-09-16T08:43:12.000Z","dependencies_parsed_at":"2024-09-16T08:28:43.209Z","dependency_job_id":"315969d1-9dc1-46a5-9b00-6212b9ef49c8","html_url":"https://github.com/phpro/grumphp-combined-coverage-extension","commit_stats":null,"previous_names":["phpro/grumphp-combined-coverage-extension"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpro%2Fgrumphp-combined-coverage-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpro%2Fgrumphp-combined-coverage-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpro%2Fgrumphp-combined-coverage-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpro%2Fgrumphp-combined-coverage-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phpro","download_url":"https://codeload.github.com/phpro/grumphp-combined-coverage-extension/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252965064,"owners_count":21832815,"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":[],"created_at":"2024-11-14T17:30:07.811Z","updated_at":"2026-01-05T19:08:21.448Z","avatar_url":"https://github.com/phpro.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GrumPHP Combined coverage extension\n\nThis extension provides a way to combine multiple PHP coverage reports into a single clover XML right before running the `clover_coverage` task.\n\n## Installation\n\nTo install this extension, run the following command:\n\n```bash\ncomposer require --dev phpro/grumphp-combined-coverage-extension\n```\n\n## Configuration\n\nTo configure this extension, add the following configuration to your `grumphp.yml`:\n\n```yaml\ngrumphp:\n  tasks:\n    clover_coverage:\n      clover_file: your-clover-location.xml\n      level: 100\n\n  extensions:\n    - 'Phpro\\GrumPHPCombinedCoverageExtension\\GrumPHPCombinedCoverageExtension'\n\nparameters:\n  # This directory contains all PHP .cov files that are generated by PHPUnit.\n  # These will be combined into the location you configured in the clover_coverage task.\n  grumphp_merge_coverage_chunks_dir: 'cov'\n\n  # Optional:\n  # By default, a built-in version of pcov will be used.\n  # You can overwrite this to use your own phpcov executable.\n  # @link https://github.com/sebastianbergmann/phpcov\n  grumphp_merge_coverage_phpcov_executeable: '/your/phpcov'\n```\n\n\n## Example usage\n\nYou can use this task together with the `paratest` and `phpunit` task.\nTo combine the PHP coverage files into a single clover file, you can use the following configuration:\n\n```yaml\nparameters:\n  grumphp_merge_coverage_chunks_dir: 'cov'\n  \ngrumphp:\n    tasks:\n        paratest:\n            config: phpunit.xml.dist\n            testsuite: unit\n            coverage-php: cov/unit.cov\n        phpunit:\n            config_file: phpunit.xml.dist\n            testsuite: functional\n            coverage-php: cov/functional.cov\n        clover_coverage:\n            clover_file: \"coverage-all.xml\"\n            minimum_level: 100\n            metadata:\n                priority: -100\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpro%2Fgrumphp-combined-coverage-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpro%2Fgrumphp-combined-coverage-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpro%2Fgrumphp-combined-coverage-extension/lists"}