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

https://github.com/czim/phpunit-printer

Custom PHPUnit output printer
https://github.com/czim/phpunit-printer

output phpunit pretty-printer testing

Last synced: 3 months ago
JSON representation

Custom PHPUnit output printer

Awesome Lists containing this project

README

        

# PHPUnit Printer

Custom styled PHPUnit print output for testing our projects.

### Compatibility

| PHPUnit version | Package version |
|-----------------|-----------------|
| < 9 | 0.9 |
| 9 | 1.0 |
| 10 | 2.0 |

### Install

```bash
composer require czim/phpunit-printer --dev
```

### Usage

You can add the package extension to your project's `phpunit.xml` file:

```xml





```

Then you can run with only the new custom output by hiding the default progress:

```bash
vendor/bin/phpunit --no-progress
```

You can also run it with normal progress. The custom formatting will be displayed directly after
the normal progress indicators when all tests are finished.