santik/phpunit-profiler

Phpunit listener for profiling tests

0.1.3 2017-11-07 11:53 UTC

This package is not auto-updated.

Last update: 2024-05-09 15:19:13 UTC


README

Small library for showing how much time every test took to run.

Installation

$ composer require santik/phpunit-profiler

Configuration

Add following lines in your phpunit.xml file.

<listeners>
        ...
        <listener class="ProfilingTestListener" file="PATH_TO_DIRECTORY_WITH_LIBRARY/ProfilingTestListener.php">
            <arguments>
                <double>0.015</double><!--seconds-->
                <double>0.001</double><!--seconds-->
            </arguments>
        </listener>
        ....
    </listeners>