Codeception extension used to profile unit tests
- Codeception 2.1.0
- PHP 5.4
Installation using Composer
$ composer require tankist/codeception-profilerBe sure to enable the extension in codeception.yml as shown in
configuration below.
All enabling and configuration is done in codeception.yml.
extensions:
enabled:
- Codeception\Extension\Profilerextensions:
enabled:
- Codeception\Extension\Profiler
config:
Codeception\Extension\Profiler:
warningTimeLimit: 5
errorTimeLimit: 30warningTimeLimit: {warningTimeLimit}- If test execution time will exceed this limit test will be marked as
warning(yellow) - Default:
1
- If test execution time will exceed this limit test will be marked as
errorTimeLimit: {errorTimeLimit}- If test execution time will exceed this limit test will be marked as
error(red) - Default:
10
- If test execution time will exceed this limit test will be marked as