坦克兵 / Codeception-Profiler
用于分析单元测试的Codeception扩展
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-09-14 18:26:09 UTC
README
用于分析单元测试的Codeception扩展
最低要求
- Codeception 2.1.0
- PHP 5.4
使用Composer安装
$ composer require tankist/codeception-profiler
请确保在下面的配置中启用扩展。
配置
所有启用和配置都在codeception.yml中完成。
使用默认设置启用Profiler
extensions: enabled: - Codeception\Extension\Profiler
使用替代设置启用Profiler
extensions: enabled: - Codeception\Extension\Profiler config: Codeception\Extension\Profiler: warningTimeLimit: 5 errorTimeLimit: 30
可用选项
warningTimeLimit: {warningTimeLimit}- 如果测试执行时间超过此限制,则测试将被标记为
warning(黄色) - 默认:
1
- 如果测试执行时间超过此限制,则测试将被标记为
errorTimeLimit: {errorTimeLimit}- 如果测试执行时间超过此限制,则测试将被标记为
error(红色) - 默认:
10
- 如果测试执行时间超过此限制,则测试将被标记为