Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/indentno/phpunit-pretty-print
- Owner: indentno
- License: mit
- Created: 2017-12-01T11:03:19.000Z (about 7 years ago)
- Default Branch: develop
- Last Pushed: 2023-03-07T21:46:27.000Z (almost 2 years ago)
- Last Synced: 2024-12-23T06:06:39.215Z (9 days ago)
- Topics: php, php7, phpunit, phpunit-pretty-print, pretty-print, testing
- Language: PHP
- Homepage: https://packagist.org/packages/sempro/phpunit-pretty-print
- Size: 1.29 MB
- Stars: 187
- Watchers: 7
- Forks: 25
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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
```
### 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)