webimp/codeception-performance-test
Composer 安装命令:
composer require webimp/codeception-performance-test
包简介
Codeception Extension to measure the performance of your tests
README 文档
README
Codeception Extension to list out slow steps during the test. Compatible with Codeception 2.2.7.
After running your tests you will see a Performance Report of your slow tests:
Slow Steps (more than 2.5s) ---------------------- I click button 6s
Installation
Add PerformanceTest to your composer.json:
"require-dev": { ... "webimp/codeception-performance-test": "1.0.*",
Usage
Add this to your extensions line at the bottom of your codeception.yml:
actor: Tester paths: tests: tests log: tests/_output data: tests/_data helpers: tests/_support settings: bootstrap: _bootstrap.php colors: true memory_limit: 1024M extensions: enabled: - Codeception\Extension\PerformanceTest: benchmark: 2.5 # min seconds for step to be marked as "slow"
Include the file into your _bootstrap.php:
include('./vendor/webimp/codeception-performance-test/src/PerformanceTest.php');
统计信息
- 总下载量: 1.19k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2017-01-08