2017 © Pedro Peláez
 

library phpunit-result-printer

Phpunit custom result printer class

image

clagiordano/phpunit-result-printer

Phpunit custom result printer class

  • Tuesday, January 23, 2018
  • by clagiordano
  • Repository
  • 1 Watchers
  • 0 Stars
  • 597 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 102 % Grown

The README.md

PHPUnit result printer

PHPUnit result printer is a custom phpunit result printer with pretty output and timings, (*1)

Sample image:, (*2)

sample_output.png, (*3)

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes., (*4)

Prerequisites

What things you need to install the software and how to install them, (*5)

  • php >= 5.3.3
  • composer

Compatiblity table

Version PHP Phpunit
1.x.x >=5.3.3 <=4.8
2.0.x >=7.1 ^7
2.1.x >=7.1 ^7|^8
3.x.x >=7.3 ^9

Installing

The recommended way to install phpunit-result-printer is through Composer., (*6)

composer require clagiordano/phpunit-result-printer

After install you can edit your phpunit.xml as follow:, (*7)

<phpunit
    ...
    printerClass="clagiordano\PhpunitResultPrinter\ResultPrinter"
>
...
</phpunit>

A full phpunit.xml example:, (*8)

<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         bootstrap="vendor/autoload.php"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         verbose="true"
         printerClass="clagiordano\PhpunitResultPrinter\ResultPrinter"
        >
    <testsuites>
        <testsuite name="Package Test Suite">
            <directory suffix=".php">./tests/</directory>
        </testsuite>
    </testsuites>
</phpunit>

Running the tests

You can clone and test this project with the following commands:, (*9)

git clone https://github.com/clagiordano/phpunit-result-printer.git
cd phpunit-result-printer
composer install
./vendor/bin/phpunit

One of the previous tests fails for demo purpose, (*10)

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us., (*11)

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository., (*12)

Authors

See also the list of contributors who participated in this project., (*13)

License

This project is licensed under the MIT License - see the LICENSE.md file for details, (*14)

The Versions

23/01 2018

dev-master

9999999-dev

Phpunit custom result printer class

  Sources   Download

MIT

The Requires

 

23/01 2018

v1.0.3

1.0.3.0

Phpunit custom result printer class

  Sources   Download

MIT

The Requires

 

22/01 2018

v1.0.2

1.0.2.0

Phpunit custom result printer class

  Sources   Download

MIT

The Requires

 

22/01 2018

v1.0.1

1.0.1.0

Phpunit custom result printer class

  Sources   Download

MIT

The Requires

 

22/01 2018

v1.0.0

1.0.0.0

  Sources   Download

The Requires