定制 jakobbuis/simple-slow-test-reporter 二次开发

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

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

jakobbuis/simple-slow-test-reporter

最新稳定版本:v1.0.0

Composer 安装命令:

composer require jakobbuis/simple-slow-test-reporter

包简介

Reports slow tests in your PHPUnit testsuite

README 文档

README

Reports slow tests in your PHPUnit testsuite

Example output of slow test reporter, highlighting some slow testcases

Requirements

Requires PHPUnit 9, 10 or 11. Use v1 for PHPUnit 9, and v2 for PHPUnit 10 and later. This extension does not support PHPUnit 8 and earlier versions.

Installation

PHPUnit 10-11

Add the reporter as a dev dependency:

composer require --dev jakobbuis/simple-slow-test-reporter:"^2.0"

Add the extension to your phpunit.xml file as a root-node:

<phpunit>
    [...]
    <extensions>
        <bootstrap class="SSTR\SlowTestReporter" />
    </extensions>
</phpunit>

Optionally, you can configure the threshold for a slow test. The default is 500 milliseconds.

<phpunit>
    [...]
    <extensions>
        <bootstrap class="SSTR\SlowTestReporter">
            <parameter name="threshold" value="1000"/>
        </bootstrap>
    </extensions>
</phpunit>

PHPUnit 9

Add the reporter as a dev dependency:

composer require --dev jakobbuis/simple-slow-test-reporter:"^1.0"

Add the extension to your phpunit.xml file as a root-node:

<phpunit>
    [...]
    <extensions>
        <extension class="SSTR\SlowTestReporter" />
    </extensions>
</phpunit>

Optionally, you can configure the threshold for a slow test. The default is 500 milliseconds.

<phpunit>
    [...]
    <extensions>
        <extension class="SSTR\SlowTestReporter">
            <arguments>
                <integer>1000</integer>
            </arguments>
        </extension>
    </extensions>
</phpunit>

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-12-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固