定制 brunty/behat-speedtrap 二次开发

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

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

brunty/behat-speedtrap

Composer 安装命令:

composer require brunty/behat-speedtrap

包简介

Extension for logging slow scenarios within Behat.

README 文档

README

Build Status

Inspired by https://github.com/johnkary/phpunit-speedtrap

Installation

Install via composer:

composer require brunty/behat-speedtrap --dev

Configure

In your behat.yml file add the following extension configuration:

default:
  extensions:
    Brunty\Behat\SpeedtrapExtension: ~

To configure the threshold for slow scenarios (default 2000ms) specify the scenario_threshold configuration option:

default:
  extensions:
    Brunty\Behat\SpeedtrapExtension:
      scenario_threshold: 500 # this is in ms

To configure the number of scenarios reported (default 10) specify the report_length configuration option:

default:
  extensions:
    Brunty\Behat\SpeedtrapExtension:
      report_length: 2

Optionally you may also set step_threshold for individual steps to be reported. When the step threshold is 0, the step threshold is ignored. The step threshold defaults to 0 (ignored):

default:
  extensions:
    Brunty\Behat\SpeedtrapExtension:
      step_threshold: 100 # this is in ms

Contributing

This started as a small personal project.

Although this project is small, openness and inclusivity are taken seriously. To that end a code of conduct (listed in the contributing guide) has been adopted.

Contributor Guide

统计信息

  • 总下载量: 4.12k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 12
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固