Skip to content

SerendipityHQ/SHQ_PHPUnit_Profiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable Version Build Status Total Downloads License Code Climate Test Coverage Issue Count StyleCI SensioLabsInsight Dependency Status Coverage Status

SHQ_PHPUnit_Profiler

A PHPUnit listener to profile the execution of test suites and tests inside them.

This listener can show the time needed by each test and each test suite to complete and the memory used by each one of them.

Installation

Use Composer to install this listener:

$ composer require serendipity_hq/phpunit_profiler

To configure the listener you have to pass an array of options:

<listeners>
    <listener class="SerendipityHQ\Library\PHPUnit_Profiler\Profiler">
        <arguments>
            <array>
                <element key="time"><boolean>true</boolean></element>
                <element key="profileTimeWithStopwatch"><boolean>true</boolean></element>
                <element key="profileMemoryUsage"><boolean>true</boolean></element>
                <element key="profileMemoryDetailedUsage"><boolean>true</boolean></element>
            </array>
        </arguments>
    </listener>
</listeners>

The listener will output the profiling information.

NOTE: As this is a listener and not a ResultsPrinter, it doesn't take care of the use of --verbose or --debug options.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages