{"id":21991081,"url":"https://github.com/zucommunications/php-unit-report-generator-bundle","last_synced_at":"2026-04-14T04:03:07.291Z","repository":{"id":255399313,"uuid":"849459198","full_name":"ZuCommunications/php-unit-report-generator-bundle","owner":"ZuCommunications","description":"Take a PHPUnit XML generated file and converts it into an Excel Sheet Report","archived":false,"fork":false,"pushed_at":"2024-11-28T17:53:40.000Z","size":3557,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-28T09:46:25.505Z","etag":null,"topics":["excel","php","phpunit","symfony","testing"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZuCommunications.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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-08-29T16:24:06.000Z","updated_at":"2024-11-28T17:53:21.000Z","dependencies_parsed_at":"2024-08-29T19:29:59.405Z","dependency_job_id":"9e1189d3-067f-4195-bdd6-617df2652701","html_url":"https://github.com/ZuCommunications/php-unit-report-generator-bundle","commit_stats":null,"previous_names":["zucommunications/php-unit-report-generator-bundle"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZuCommunications%2Fphp-unit-report-generator-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZuCommunications%2Fphp-unit-report-generator-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZuCommunications%2Fphp-unit-report-generator-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZuCommunications%2Fphp-unit-report-generator-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZuCommunications","download_url":"https://codeload.github.com/ZuCommunications/php-unit-report-generator-bundle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245052595,"owners_count":20553161,"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":["excel","php","phpunit","symfony","testing"],"created_at":"2024-11-29T20:06:38.290Z","updated_at":"2025-10-19T12:36:40.446Z","avatar_url":"https://github.com/ZuCommunications.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHPUnit Report Generator Bundle\nThis Symfony bundle provides a command to generate an Excel report from PHPUnit XML files, summarizing test results in a user-friendly format. The generated report includes detailed information about each test case, including suite name, test case, class name, file, line, assertions, time, and status (Passed/Failed).\n\n## Installation\nTo install this bundle, use Composer:\n\n```composer require zucommunications/php-unit-report-generator-bundle```\n\nYou may need to add this to your `composer.json`:\n\n```\n\"repositories\": [\n        {\n            \"type\": \"vcs\",\n            \"url\": \"https://github.com/ZuCommunications/php-unit-report-generator-bundle\"\n        }\n    ],\n```\n\nYou will need to add a yaml configuration in config/packages, below is an example:\n\n```\nreport:\n  output_path: '/var/www/html/public'\n```\n\n## Usage\nOnce installed, this bundle adds the phpunit:generate-test-report command to your Symfony project.\nTo generate a test report, run the following command:\n\n```php bin/console phpunit:generate-test-report```\n\nThis command will:\n\n1. Execute PHPUnit tests with the --testdox and --log-junit options to generate a report.xml file.\n2. Parse the report.xml file.\n3. Create an Excel report (report.xlsx) in the specified output directory with a summary of the test results.\nOutput\n4. The generated Excel report will contain two sheets:\n\n- Sheet 1: Detailed Test Results\n  - Columns: Suite Name, Test Case, Class Name, File, Line, Assertions, Time, Passed/Failed\n- Sheet 2: Summary\n  - Total number of test cases \n  - Number of tests passed \n  - Number of tests failed\n\n## Configuration\nBy default, the generated report will be saved in the project's root directory. You can customize the output path by passing a different value when initializing the GenerateTestReportCommand in your services configuration.\n\n## Example\nTo generate the test report, run the command in your terminal:\n\n```php bin/console phpunit:generate-test-report```\n\n## Requirements\n- Symfony 5.4 or later\n- PHP 7.4 or later\n- PHPUnit 9.5 or later\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzucommunications%2Fphp-unit-report-generator-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzucommunications%2Fphp-unit-report-generator-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzucommunications%2Fphp-unit-report-generator-bundle/lists"}