{"id":28098003,"url":"https://github.com/daison12006013/clover-coverage-to-html","last_synced_at":"2025-05-13T17:47:22.395Z","repository":{"id":55448681,"uuid":"196895500","full_name":"daison12006013/clover-coverage-to-html","owner":"daison12006013","description":"Clover XML into HTML Coverage + Badge Tagging","archived":false,"fork":false,"pushed_at":"2021-01-05T07:07:05.000Z","size":773,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-20T04:04:17.357Z","etag":null,"topics":["clover","coverage","html","php","xml"],"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/daison12006013.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-15T00:05:17.000Z","updated_at":"2020-12-30T06:55:21.000Z","dependencies_parsed_at":"2022-08-15T00:30:58.783Z","dependency_job_id":null,"html_url":"https://github.com/daison12006013/clover-coverage-to-html","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daison12006013%2Fclover-coverage-to-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daison12006013%2Fclover-coverage-to-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daison12006013%2Fclover-coverage-to-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daison12006013%2Fclover-coverage-to-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daison12006013","download_url":"https://codeload.github.com/daison12006013/clover-coverage-to-html/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253996761,"owners_count":21996752,"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","coverage","html","php","xml"],"created_at":"2025-05-13T17:47:21.538Z","updated_at":"2025-05-13T17:47:22.387Z","avatar_url":"https://github.com/daison12006013.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://raw.githubusercontent.com/daison12006013/clover-coverage-to-html/master/sample.png\"\u003e\n\n# Clover XML to HTML\n\nParses a clover xml and maps the coverage based on the relative path on your local and will calculate and creates a static website that shows the coverage.\n\n## Installation\n\n```\ncomposer create-project daison/clover-to-html:dev-master clover-to-html --no-interaction\ncd clover-to-html\n```\n\n## Executing Command\n\n```\n./clover-coverage-to-html process --xml-path=tests/coverage.xml --store-path=reports/coverage --config-path=config.example.php\n```\n\n## Example Config\n\n**clover_to_html.php**\n\n```php\nreturn [\n    'title'   =\u003e 'My Project Code Coverage',\n    'ignores' =\u003e [\n        'exact' =\u003e [\n            '});',\n            ']);',\n            ');',\n            '}',\n            '{',\n            ']',\n            '[',\n            ') {',\n            'return [',\n            '];',\n            'try {',\n        ],\n        'regex' =\u003e [\n            'catch( |)\\((.*)\\)',\n            '\\}( |)else( |)\\{',\n        ],\n    ],\n    'badges' =\u003e [\n        'Repositories' =\u003e 'Repositories/', // single\n        'Controllers'  =\u003e ['Controllers/Api', 'Controllers/Http'], // grouping\n\n        // or regex sample\n        'User'         =\u003e '(.*)User(.*)',\n        'Payment       =\u003e ['/Payment', 'Payment(Controller|Repository)'],\n    ],\n];\n```\n\nYou could ignore a code based on the `regex` or an `exact` value of that line.\n\nThe computation will be different compared to the original clover computations, where we only combined the (green + red is equal to 100%). This is to simplify the wrong output given by `phpdbg` or `xdebug` drivers as example when using php.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaison12006013%2Fclover-coverage-to-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaison12006013%2Fclover-coverage-to-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaison12006013%2Fclover-coverage-to-html/lists"}