承接 andreadelfino/phpunit-timings-printer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

andreadelfino/phpunit-timings-printer

Composer 安装命令:

composer require andreadelfino/phpunit-timings-printer

包简介

PHPUnit printer with timings reporting

README 文档

README

This printer just collect tests execution timings and report the slowest 10 exceeding a defined threshold in normal mode and all the timings in verbose mode.

Requirements

  • PHP 5.3.3 or later
  • PHPUnit 3.7 or later

Installation

To install it via composer composer just add in composer.json:

{
    "require-dev": {
        "andreadelfino/phpunit-timings-printer": "~0.1"
    }
}

Once installed, add the following attributes to the <phpunit> element in your phpunit.xml file:

    printerFile="vendor/andreadelfino/phpunit-timings-printer/lib/Timings/ResultPrinter.php"
    printerClass="Dolphin\PHPUnit\Timings\ResultPrinter"

and the following tag to tune Threshold and Verbose options:

    <listeners>
        <listener file="vendor/andreadelfino/phpunit-timings-printer/lib/Timings/TestListener.php"
            class="Dolphin\PHPUnit\Timings\TestListener">
            <arguments>
                <double>1.0</double>/* Threshold (default: 1.0) */
                <boolean>false</boolean>/* Verbose (default: false) */
            </arguments>
        </listener>
    </listeners>

Tests

To run the test suite you need composer.

$ php composer.phar install
$ vendor/bin/phpunit

License

Licensed under the MIT license.

统计信息

  • 总下载量: 24
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-06-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固