jdeniau/behat-reviewdog-formatter
最新稳定版本:v0.3.1
Composer 安装命令:
composer require jdeniau/behat-reviewdog-formatter
包简介
A behat formatter that does output to rdjsonl to be handled by reviewdog
README 文档
README
A behat formatter that does output to rdjsonl to be handled by reviewdog
Installation
composer require --dev jdeniau/behat-reviewdog-formatter
Usage
Configure your behat.yml file:
default: extensions: JDeniau\BehatReviewdogFormatter\ReviewdogFormatterExtension: ~ formatters: pretty: true reviewdog: # "reviewdog" here is the "name" given in our formatter # outputh_path is optional and handled directy by behat output_path: 'build/logs/behat' # file_name is optional and a custom parameter that we inject into the printer file_name: 'reviewdog-behat.json' # optional, default to true remove_old_file: true
Different output per profile
You can active the extension only for a certain profile by specifying a profile in your command (ex: --profile=ci)
For example if you want the pretty formatter by default, but both progress and reviewdog on your CI, you can configure it like that:
default: extensions: JDeniau\BehatReviewdogFormatter\ReviewdogFormatterExtension: ~ formatters: pretty: true ci: formatters: pretty: false progress: true reviewdog: output_path: 'build/logs/behat' file_name: 'reviewdog-behat.json' # optional, default to true remove_old_file: true
Related
Want more detail about how you can create your own behat extension ? See how this extension has been made in this blogpost
统计信息
- 总下载量: 7.19k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-01-24