Skip to content
Make your PHPUnit output beautiful
PHP
Branch: develop
Clone or download
Pull request Compare This branch is 1 commit ahead of sempro:develop.

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.gitignore
.php_cs.dist
.travis.yml
LICENSE.md
README.md
composer.json
composer.lock
phpunit.xml
preview.gif

README.md

phpunit-pretty-print

Make your PHPUnit output beautiful

Build Status Packagist Packagist PRs Welcome psr-2

Installation

composer require sempro/phpunit-pretty-print --dev

This package requires >=7.0.0 of PHPUnit. If you're running on 6.x, please use version 1.0.3.

Usage

You can specify the printer to use on the phpunit command line:

php vendor/bin/phpunit --printer 'Sempro\PHPUnitPrettyPrinter\PrettyPrinter' tests/

Optionally, you can add it to your project's phpunit.xml file instead:

<phpunit
    bootstrap="bootstrap.php"
    colors="true"
    printerClass="Sempro\PHPUnitPrettyPrinter\PrettyPrinter">

phpunit-pretty-print

Optional

To view progress while tests are running you can set PHPUNIT_PRETTY_PRINT_PROGRESS=true as environment variable on your server or within your phpunit.xml config file.

<phpunit>
    <php>
        <env name="PHPUNIT_PRETTY_PRINT_PROGRESS" value="true" />
    </php>
</phpunit>

License

MIT © Sempro AS

You can’t perform that action at this time.