{"id":25518283,"url":"https://github.com/abwebdevelopers/phpunit-presenter","last_synced_at":"2025-04-10T23:32:16.991Z","repository":{"id":56939783,"uuid":"208936428","full_name":"abwebdevelopers/phpunit-presenter","owner":"abwebdevelopers","description":"A presentable result printer for PHPUnit","archived":false,"fork":false,"pushed_at":"2020-06-09T08:09:40.000Z","size":22,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-24T20:13:38.560Z","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/abwebdevelopers.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":"2019-09-17T01:58:47.000Z","updated_at":"2020-06-09T08:07:57.000Z","dependencies_parsed_at":"2022-08-21T06:50:12.207Z","dependency_job_id":null,"html_url":"https://github.com/abwebdevelopers/phpunit-presenter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abwebdevelopers%2Fphpunit-presenter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abwebdevelopers%2Fphpunit-presenter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abwebdevelopers%2Fphpunit-presenter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abwebdevelopers%2Fphpunit-presenter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abwebdevelopers","download_url":"https://codeload.github.com/abwebdevelopers/phpunit-presenter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248316046,"owners_count":21083371,"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":"2025-02-19T16:24:57.055Z","updated_at":"2025-04-10T23:32:16.956Z","avatar_url":"https://github.com/abwebdevelopers.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHPUnit Presenter\n\nDisplays the PHPUnit test results in a more presentable and friendly format. The Presenter includes timings for tests,\ncolour support and better displays of errors and failures.\n\n![Presenter Output](https://abweb.com.au/img/presenter.png)\n\n**This has _only_ been tested with PHPUnit `^7.5`**. However, this plugin still allows PHPUnit up to `^9.0` (via composer.json) to ease dependency restrictions but please note that things may not work as expected (use at your own 'risk').\n\n## Features\n\n- Different formatting types depending on your preferences.\n- Grouping of test cases and suites.\n- Time taken for each test case.\n- Optional colour support.\n\n## How to use\n\nSimply include this library via Composer:\n\n```\ncomposer require --dev abwebdevelopers/phpunit-presenter\n```\n\nAnd then add it to your `phpunit.xml` file as the `printerClass` attribute\n\n```xml\n\u003cphpunit\n        ...\n        printerClass=\"ABWebDevelopers\\PHPUnitPresenter\\Presenter\"\n        ...\n\u003e\n```\n\n## Configuration\n\nThe Presenter can be configured via environment variables. The following environment variables are used:\n\nEnvironment Variable | Default | Description\n---------------------|---------|------------\n`PRESENTER_SHOW_TIMES` | `1` | Displays the time taken for test cases. Set to `0` to disable.\n`PRESENTER_COLOURS` | `1` | Displays colouring of CLI output. Set to `0` to disable. It is recommended to disable colours for test environments, ie. Travis CI.\n`PRESENTER_HIDE_SUCCESSFUL` | `0` | If enabled, will hide all successful tests, and only show failed or errored tests. Set to `1` to enable.\n`PRESENTER_FORMAT` | `default` | Sets the format used to display results via Presenter. Valid values are `default`, `feed` and `condensed`. It is recommended to use `feed` or `condensed` for test environments, ie. Travis CI.\n\n## Formats\n\nThere are three types of formatting of the results displayed by Presenter - `default`, `feed` and `condensed`.\n\n`default` and `feed` display the same information (shown in the screenshot above), however, `default` uses CLI line overwriting to show real-time progress of tests. This may not work with some log readers used in test environments (such as Travis CI), so it is recommended to use `feed` for test environments.\n\nA third format `condensed` presents test results in a condensed format closer to PHPUnit's default result printer. When using `condensed`, it is implied that `PRESENTER_SHOW_TIMES` is set to `0`. The formatting of condensed looks similar to this:\n\n![Presenter Condensed Output](https://abweb.com.au/img/presenter-condensed.png)\n\n## License\n\nMIT.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabwebdevelopers%2Fphpunit-presenter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabwebdevelopers%2Fphpunit-presenter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabwebdevelopers%2Fphpunit-presenter/lists"}