Download the PHP package peterfox/phpunit-toon-result-printer without Composer
On this page you can find all versions of the php package peterfox/phpunit-toon-result-printer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download peterfox/phpunit-toon-result-printer
More information about peterfox/phpunit-toon-result-printer
Files in peterfox/phpunit-toon-result-printer
Package phpunit-toon-result-printer
Short Description A PHPUnit results printer that works with the TOON format
License MIT
Homepage https://github.com/peterfox/phpunit-toon-result-printer
Informations about the package phpunit-toon-result-printer
PHPUnit TOON Result Printer
A PHPUnit results printer that outputs test results in TOON (Token-Oriented Object Notation) format.
This extension is specifically designed to provide compact, highly readable test results optimized for LLM (Large Language Model) consumption, helping AI agents quickly diagnose test failures.
Features
- Compact Output: Uses TOON format to minimize token usage while remaining human-readable.
- AI-Friendly Diagnostics: Includes file paths, line numbers, error messages, and stack traces for failed and errored tests.
- Concise Success Reports: Passed tests only show the test name and status to keep the output focused on what needs attention.
- PHPUnit Extension: Integrates seamlessly as a PHPUnit extension.
Installation
You can install the package via composer:
Configuration
Permanent (Recommended)
To use this printer, add it as an extension in your phpunit.xml or phpunit.xml.dist file:
When enabled, it will suppress PHPUnit's default progress and result output, replacing it with TOON-formatted output at the end of the test execution.
Manual (CLI)
If you don't want to enable it for all test runs, you can trigger it manually using the --extension flag:
Example Output
For a passing test:
For a failing test:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of phpunit-toon-result-printer with dependencies
helgesverre/toon Version ^3.1
phpunit/phpunit Version ^10.5.60|^11.5.48|^12.0