2017 © Pedro Peláez
 

library phpunit-result-printer

PHPUnit Pretty Result Printer

image

codedungeon/phpunit-result-printer

PHPUnit Pretty Result Printer

  • Thursday, July 26, 2018
  • by codedungeon
  • Repository
  • 25 Watchers
  • 998 Stars
  • 219,018 Installations
  • PHP
  • 186 Dependents
  • 1 Suggesters
  • 37 Forks
  • 4 Open issues
  • 86 Versions
  • 60 % Grown

The README.md

CodeDungeon PHPUnit Pretty Result Printer

Version 0.29.2 Extend the default PHPUnit Result Printer with a modern, pretty printer!, (*1)


📦 PHPUnit Pretty Result Printer -- Packagist, (*2)

Installation

Installation provided via composer and can be done with the following command, the current version requires PHP 7.1 or greater:, (*3)

> composer require --dev codedungeon/phpunit-result-printer

Upgrading to >= 0.29.x

If you are upgrading from previous verison and have published phpunit-printer.yml locally, make sure add the following to the options section, (*4)

  ...
  cd-printer-dont-format-classname: false
  ...

Execute Initialization Script (Optional)

The following steps are optional, but will provide zero configuration for implementing phpunit-pretty-result-printer, (*5)

  • Adds printerClass="Codedungeon\PHPUnitPrettyResultPrinter\Printer" to phpunit.xml file
  • Copies default phpunit-printer.yml to project root for easier customization
> php ./vendor/codedungeon/phpunit-result-printer/src/init.php

Manual Configuration

Alternately, if you wish to configure phpunit-pretty-result-printer manually, you will need to update your phpunit.xml file as follows, (*6)

<?xml version="1.0" encoding="UTF-8"?>
  <phpunit printerClass="Codedungeon\PHPUnitPrettyResultPrinter\Printer">
    // ....
  </phpunit>

Or from Command-Line:, (*7)

 > phpunit --printer=Codedungeon\\PHPUnitPrettyResultPrinter\\Printer

Laravel 5.3 with PHP version 7.0.x

If you are using PHP 7.0.x, you will need to use a compatible version of PHPUnit Result Printer (version 0.8.x), (*8)

> composer require --dev codedungeon/phpunit-result-printer:^0.8

AnyBar Integration

If you have AnyBar installed, it will be enabled by default. You can disable using cd-printer-anybar-enabled option (see below), (*9)

https://github.com/tonsky/AnyBar, (*10)

**Anybar is off by default, thus you will need to set the cd-printer-anybar option in the phpunit-printer.yml to true if you wish to use Anybar., (*11)

This has been done to address issues with using CI tools such as travis (please see Issue 122 for details) **, (*12)

NOTE: AnyBar is only available with PHPUnit 7.1 or greater. If you need support for previous versions, please let us know. We are slowly deprecating versions before 7.1., (*13)

Configuration Options

  • Create a phpunit-printer.yml file in your application root to override default (or anywhere use up the parent tree. It will search recursively up the tree until a configuration file is found. If not found, default configuration will be used). The following options are available (along with their default values):

Options

Property Name Default Description
cd-printer-hide-class false Hides the display of the test class name
cd-printer-simple-output false Uses the default PHPUnit markers (but still uses Printer)
cd-printer-show-config true Show path to used configuration file
cd-printer-hide-namespace true Hide test class namespaces (will only show print class name)
cd-printer-anybar true Enable AnyBar (if anybar is not installed, settings will be ignored)
cd-printer-anybar-port 1738 Define AnyBar port number
cd-printer-dont-format-classname false Show entire classname*
  • If cd-printer-hide-namespace set to false and cd-printer-dont-format-classname to false will attempt to keep everyting formatted
  • If cd-printer-dont-format-classname nothing will be formatted and full classname will be displayed

Markers

You can customize the markers which are used for success, fail, error, skipped, incomplete by modifying the phpunit-printer.yml file., (*14)

Marker Value *
cd-pass "✔ "
cd-fail "✖ "
cd-error "⚈ "
cd-skipped "→ "
cd-incomplete "∅ "
cd-risky "⌽ "

* Notice space after each marker. This makes the output a little more visually appealing, thus keep that in mind when creating your own custom markers, (*15)

License

Copyright © 2017-2021 Mike Erickson Released under the MIT license, (*16)

Credits

phpunit-result-printer written by Mike Erickson, (*17)

E-Mail: codedungeon@gmail.com, (*18)

Twitter: @codedungeon, (*19)

Website: https://github.com/mikeerickson, (*20)

Screenshot

Screenshot, (*21)

The Versions

26/07 2018

dev-master

9999999-dev

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

26/07 2018

0.19.12

0.19.12.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

24/05 2018

0.19.10

0.19.10.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

24/05 2018

dev-analysis-8PnKxo

dev-analysis-8PnKxo

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

23/05 2018

0.19.9

0.19.9.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

23/05 2018

dev-analysis-z9ajGP

dev-analysis-z9ajGP

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

23/05 2018

0.19.8

0.19.8.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

23/05 2018

dev-analysis-qr6O7V

dev-analysis-qr6O7V

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

17/05 2018

v0.19.6

0.19.6.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

17/05 2018

v0.19.5

0.19.5.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

17/05 2018

v0.19.4

0.19.4.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

17/05 2018

0.19.3

0.19.3.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

17/05 2018

0.19.2

0.19.2.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

17/05 2018

0.19.1

0.19.1.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

17/05 2018

0.19.0

0.19.0.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

17/05 2018

0.18.10

0.18.10.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

17/05 2018

0.18.9

0.18.9.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

15/05 2018

0.18.7

0.18.7.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

15/05 2018

0.18.6

0.18.6.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

15/05 2018

0.18.5

0.18.5.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

15/05 2018

0.18.4

0.18.4.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

15/05 2018

0.18.3

0.18.3.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

15/05 2018

0.18.0

0.18.0.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

09/05 2018

0.17.1

0.17.1.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

21/04 2018

dev-analysis-zOY4PJ

dev-analysis-zOY4PJ

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

17/04 2018

dev-analysis-8K66xQ

dev-analysis-8K66xQ

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

17/04 2018

0.16.1

0.16.1.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

17/04 2018

0.16.0

0.16.0.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

17/04 2018

0.15.5

0.15.5.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

17/04 2018

0.15.4

0.15.4.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

tdd phpunit testing composer package printer result-printer

17/04 2018

0.15.3

0.15.3.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit testing composer package printer result-printer

16/04 2018

0.15.0

0.15.0.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit testing composer package printer result-printer

08/04 2018

0.14.0

0.14.0.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit testing composer package printer result-printer

07/04 2018

0.13.0

0.13.0.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit testing composer package printer result-printer

07/04 2018

0.12.2

0.12.2.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit testing composer package printer result-printer

06/04 2018

0.12.1

0.12.1.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit testing composer package printer result-printer

06/04 2018

0.12.0

0.12.0.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit testing composer package printer result-printer

06/04 2018

dev-bugfix/063-phpunit-71x-support

dev-bugfix/063-phpunit-71x-support

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit testing composer package printer result-printer

05/04 2018

0.11.4

0.11.4.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit testing composer package printer result-printer

04/04 2018

0.11.3

0.11.3.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

29/03 2018

0.11.2

0.11.2.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

28/03 2018

dev-analysis-XNWjeg

dev-analysis-XNWjeg

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

28/03 2018

dev-feature/055-support-customer-printer-markers

dev-feature/055-support-customer-printer-markers

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

28/03 2018

dev-analysis-q1ejDw

dev-analysis-q1ejDw

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

28/03 2018

0.11.0

0.11.0.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

27/03 2018

0.10.1

0.10.1.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

27/03 2018

0.10.0

0.10.0.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

27/03 2018

0.9.3

0.9.3.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

27/03 2018

0.9.2

0.9.2.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

26/03 2018

0.9.1

0.9.1.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

25/03 2018

0.9.0

0.9.0.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

24/03 2018

0.8.4

0.8.4.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

23/03 2018

0.8.3

0.8.3.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

23/03 2018

0.8.2

0.8.2.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

23/03 2018

0.8.1

0.8.1.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

23/03 2018

0.8.0

0.8.0.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

21/03 2018

0.7.0

0.7.0.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

03/03 2018

dev-analysis-qJ93Gk

dev-analysis-qJ93Gk

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

03/03 2018

0.6.1

0.6.1.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

04/02 2018

0.6.0

0.6.0.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

24/01 2018

0.5.4

0.5.4.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

24/01 2018

dev-bugfix/023-remove-php7-type-hints

dev-bugfix/023-remove-php7-type-hints

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

11/01 2018

0.5.3

0.5.3.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

11/01 2018

0.5.2

0.5.2.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

09/01 2018

0.5.1

0.5.1.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

06/01 2018

dev-admin/018-add-circleci-support

dev-admin/018-add-circleci-support

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

03/01 2018

0.5.0

0.5.0.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

22/12 2017

0.4.4

0.4.4.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

22/12 2017

0.4.3

0.4.3.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

22/12 2017

0.4.2

0.4.2.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

22/12 2017

0.4.0

0.4.0.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

24/11 2017

0.3.0

0.3.0.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

27/08 2017

0.2.1

0.2.1.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

27/08 2017

0.1.2

0.1.2.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

27/08 2017

0.1.1

0.1.1.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

25/08 2017

0.1.0

0.1.0.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

04/08 2017

0.0.11

0.0.11.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

 

The Development Requires

phpunit composer package printer result-printer

21/07 2017

0.0.10

0.0.10.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

phpunit composer package printer result-printer

20/07 2017

0.0.9

0.0.9.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

phpunit composer package printer result-printer

19/07 2017

0.0.8

0.0.8.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

phpunit composer package printer result-printer

19/07 2017

0.0.7

0.0.7.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

phpunit composer package printer result-printer

19/07 2017

0.0.6

0.0.6.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

phpunit composer package printer result-printer

19/07 2017

0.0.5

0.0.5.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

phpunit composer package printer result-printer

18/07 2017

0.0.4

0.0.4.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

phpunit composer package printer result-printer

18/07 2017

0.0.2

0.0.2.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

phpunit composer package printer result-printer

18/07 2017

v0.0.1

0.0.1.0

PHPUnit Pretty Result Printer

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

phpunit composer package printer result-printer