clagiordano/phpunit-result-printer
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:
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
- Claudio Giordano - Initial work - clagiordano
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
clagiordano/phpunit-result-printer 适用场景与选型建议
clagiordano/phpunit-result-printer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 47.26k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2018 年 01 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 clagiordano/phpunit-result-printer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 clagiordano/phpunit-result-printer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 47.26k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 23
- 依赖项目数: 7
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-01-22
