tankist / codeception-profiler
Codeception extension used to profile unit tests
0.1.2
2015-12-11 13:59 UTC
Requires
- php: >=5.4
- codeception/codeception: ~2.1
Requires (Dev)
- codeception/specify: *
- codeclimate/php-test-reporter: dev-master
This package is not auto-updated.
Last update: 2024-12-21 19:47:42 UTC
README
Codeception extension used to profile unit tests
Minimum Requirements
- Codeception 2.1.0
- PHP 5.4
Installation using Composer
$ composer require tankist/codeception-profiler
Be sure to enable the extension in codeception.yml
as shown in
configuration below.
Configuration
All enabling and configuration is done in codeception.yml
.
Enabling Profiler with defaults
extensions: enabled: - Codeception\Extension\Profiler
Enabling Profiler with alternate settings
extensions: enabled: - Codeception\Extension\Profiler config: Codeception\Extension\Profiler: warningTimeLimit: 5 errorTimeLimit: 30
Available options
warningTimeLimit: {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