cloudstek / codeception-fancy-dot-reporter
Codeception 中 DotReporter 的增强版本
1.0.0
2018-10-22 22:28 UTC
Requires (Dev)
- codeception/codeception: ^2.3
- friendsofphp/php-cs-fixer: ^2.13
- squizlabs/php_codesniffer: ^3.3
This package is auto-updated.
Last update: 2024-09-23 12:11:33 UTC
README
这是从 Codeception 的 DotReporter 分支出来的,并添加了一些增强功能,使其更像 PHPUnit 的报告器。
要求
- Codeception 2.3+
- PHP 5.4+
示例
.......... 10 / 75 ( 13%) .......... 20 / 75 ( 28%) .......... 30 / 75 ( 40%) .......... 40 / 75 ( 54%) .......... 50 / 75 ( 67%) .......... 60 / 75 ( 80%) .......... 70 / 75 ( 94%) ..... 75 / 75 (100%) Time: 2.07 seconds, Memory: 20.00MB OK (75 tests, 124 assertions)
当测试成功时显示 .。当在运行测试方法时断言失败显示 F。当在运行测试方法时发生错误显示 E。当测试被跳过时显示 S。当测试标记为不完整或尚未实现时显示 I。
安装
使用 composer
- 使用 composer 安装
composer require --dev cloudstek/codeception-fancy-dot-reporter
- 启用扩展(见 用法)。
手动
用法
要启用扩展,请使用 —ext 或将其添加到 codeception.yml 中已启用的扩展列表。
使用 —ext 选项
vendor/bin/codeception run --ext "Cloudstek\Codeception\Extension\DotReporter"
使用 codeception.yml
extensions: enabled: - Cloudstek\Codeception\Extension\DotReporter
配置选项
有关如何配置 Codeception 扩展的官方文档,请参阅 官方文档。下面列出可用的选项。
columns
类型:整数
用于进度输出的列数。默认为输出控制台宽度,总是最大值。
许可证
请参阅 LICENSE