定制 webimp/codeception-performance-test 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

webimp/codeception-performance-test

Composer 安装命令:

composer require webimp/codeception-performance-test

包简介

Codeception Extension to measure the performance of your tests

README 文档

README

Codacy Badge

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

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2017-01-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固