A simple Composer package which provides a TAP result printer for PHPUnit.
Install the package with Composer.
$ composer require --dev gh640/phpunit-tap
Specify the TAP result printer with the --printer
option when running phpunit
. The printer's FQCN is gh640PhpunitTapTapResultPrinter
.
$ phpunit --printer gh640PhpunitTapTapResultPrinter [your test file]
You can pipe the output to your favorite TAP reporter/formatter. See also sindresorhus/awesome-tap | GitHub.
$ phpunit --printer gh640PhpunitTapTapResultPrinter [your test file] | tap-dot $ phpunit --printer gh640PhpunitTapTapResultPrinter [your test file] | tap-nyan $ phpunit --printer gh640PhpunitTapTapResultPrinter [your test file] | tap-notify
Or, you can omit the option --printer
by adding the option into your phpunit.xml
.
<?xml version="1.0" encoding="UTF-8"?> <phpunit printerClass="gh640PhpunitTapTapResultPrinter"> </phpunit>
This package depends on the following packages.
phpunit/phpunit
symfony/yaml
For the detailed dependencies, please have a look at the Packagist page.
gh640/phpunit-tap - Packagist
If you find an issue, please file it in the issue queue.
Issues · gh640/phpunit-tap · GitHub
PHPUnit
PHPUnit – The PHP Testing Framework
TAP (Test Anything Protocol)
Test Anything Protocol
Test Anything Protocol - Wikipedia
Other PHPUnit printers: You might be interested in the other PHPUnit printers.
whatthejeff/nyancat-phpunit-resultprinter - Packagist
memio/pretty-printer - Packagist
thru.io/json-pretty-printer - Packagist
kujira/phpunit-printer - Packagist
scriptfusion/phpunit-immediate-exception-printer - Packagist
diablomedia/phpunit-pretty-printer - Packagist
zf2timo/phpunit-pretty-result-printer - Packagist
Licensed under the MIT license.