sempro/phpunit-pretty-print
Composer 安装命令:
composer require sempro/phpunit-pretty-print
包简介
Prettify PHPUnit output
README 文档
README
✅ Make your PHPUnit output beautiful
Installation
composer require sempro/phpunit-pretty-print --dev
This package requires >=7.0.0 of PHPUnit.
If you're running on 6.x, please use version 1.0.3.
If you are running on 9.x use the \Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9 class
Usage
You can specify the printer to use on the phpunit command line:
For PhpUnit < 9, use the following:
php vendor/bin/phpunit --printer 'Sempro\PHPUnitPrettyPrinter\PrettyPrinter' tests/
For PhpUnit >= 9, use the following:
php vendor/bin/phpunit --printer 'Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9' tests/
Optionally, you can add it to your project's phpunit.xml file instead:
<phpunit bootstrap="bootstrap.php" colors="true" printerClass="Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9">
Optional
To view progress while tests are running you can set PHPUNIT_PRETTY_PRINT_PROGRESS=true as environment variable on your server or within your phpunit.xml config file.
<phpunit> <php> <env name="PHPUNIT_PRETTY_PRINT_PROGRESS" value="true" /> </php> </phpunit>
License
MIT © Sempro AS
sempro/phpunit-pretty-print 适用场景与选型建议
sempro/phpunit-pretty-print 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.98M 次下载、GitHub Stars 达 186, 最近一次更新时间为 2017 年 12 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 sempro/phpunit-pretty-print 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sempro/phpunit-pretty-print 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 3.98M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 187
- 点击次数: 29
- 依赖项目数: 686
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2017-12-01
