承接 clagiordano/phpunit-result-printer 相关项目开发

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

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

clagiordano/phpunit-result-printer

最新稳定版本:v4.0.0-beta

Composer 安装命令:

composer require clagiordano/phpunit-result-printer

包简介

Phpunit custom result printer class

README 文档

README

PHPUnit result printer is a custom phpunit result printer with pretty output and timings

Sample image:

sample_output.png

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

What things you need to install the software and how to install them

  • php >= 5.3.3
  • composer

Compatiblity table

Version PHP Phpunit
1.x.x >=5.3.3 <=4.8
2.0.x >=7.1 ^7
2.1.x >=7.1 ^7|^8
3.x.x >=7.3 ^9

Installing

The recommended way to install phpunit-result-printer is through Composer.

composer require clagiordano/phpunit-result-printer

After install you can edit your phpunit.xml as follow:

<phpunit
    ...
    printerClass="clagiordano\PhpunitResultPrinter\ResultPrinter"
>
...
</phpunit>

A full phpunit.xml example:

<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         bootstrap="vendor/autoload.php"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         verbose="true"
         printerClass="clagiordano\PhpunitResultPrinter\ResultPrinter"
        >
    <testsuites>
        <testsuite name="Package Test Suite">
            <directory suffix=".php">./tests/</directory>
        </testsuite>
    </testsuites>
</phpunit>

Running the tests

You can clone and test this project with the following commands:

git clone https://github.com/clagiordano/phpunit-result-printer.git
cd phpunit-result-printer
composer install
./vendor/bin/phpunit

One of the previous tests fails for demo purpose

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-01-22