Skip to content

Phpunit tests profiler. Shows execution time for every test.

Notifications You must be signed in to change notification settings

santik/phpunit-profiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnitTest profiler

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>