Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/indentno/phpunit-pretty-print

✅  Make your PHPUnit output beautiful
https://github.com/indentno/phpunit-pretty-print

php php7 phpunit phpunit-pretty-print pretty-print testing

Last synced: 2 days ago
JSON representation

✅  Make your PHPUnit output beautiful

Awesome Lists containing this project

README

        

# phpunit-pretty-print
> ✅ Make your PHPUnit output beautiful

[![Build Status](https://travis-ci.com/sempro/phpunit-pretty-print.svg?branch=master)](https://travis-ci.com/sempro/phpunit-pretty-print)
[![Packagist](https://img.shields.io/packagist/dt/sempro/phpunit-pretty-print.svg)](https://packagist.org/packages/sempro/phpunit-pretty-print)
[![Packagist](https://img.shields.io/packagist/v/sempro/phpunit-pretty-print.svg)](https://packagist.org/packages/sempro/phpunit-pretty-print)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)
[![psr-2](https://img.shields.io/badge/code_style-PSR_2-blue.svg)](http://www.php-fig.org/psr/psr-2/)

### Installation
```bash
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`.

If you are running on `9.x` use the `\Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9` class

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

For PhpUnit < 9, use the following:
```bash
php vendor/bin/phpunit --printer 'Sempro\PHPUnitPrettyPrinter\PrettyPrinter' tests/
```
For PhpUnit >= 9, use the following:
```bash
php vendor/bin/phpunit --printer 'Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9' tests/
```

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

```xml

```

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.
```xml



```

### License
MIT © [Sempro AS](http://www.sempro.no)