nikeee / phpunit-tap
A phpunit 10+ extension for TAP reports
Installs: 46 845
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 2
Open Issues: 2
Requires
- php: ^8.2
- phpunit/phpunit: ^11.0.4
- symfony/yaml: ^v6.4.3
This package is auto-updated.
Last update: 2025-04-01 19:02:24 UTC
README
A TAP extension for phpunit 10+. Based on gh640/phpunit-tap (which works for phpunit 9).
Usage
composer require --dev nikeee/phpunit-tap
To print the TAP output to a file (for example, output.tap
), add the bootstrap to your phpunit.xml
:
<?xml version="1.0" encoding="UTF-8"?> <phpunit> <extensions> <bootstrap class="nikeee\PhpunitTap\TapExtension"> <parameter name="fileName" value="output.tap"/> </bootstrap> </extensions> </phpunit>
To print the results to stdout, omit the parameter:
<?xml version="1.0" encoding="UTF-8"?> <phpunit> <extensions> <bootstrap class="nikeee\PhpunitTap\TapExtension" /> </extensions> </phpunit>