seretos/behat-json-formatter
Composer 安装命令:
composer require seretos/behat-json-formatter
包简介
this library extends behat with an json formatter and publish commands to manage this generated json files
关键字:
README 文档
README
this library extend the behat library with an json formatter. this formatter generate for every suite an json format the executed features,scenarios and steps. the library also saved the executed environment (firefox,IE,...) result. Every browserless environment will be saved as "unknown"
this library provides also different commands to validate and merge multiple generated json files.
Installation
execute the following command as below
$ composer require seretos/BehatJsonFormatter
Usage
add the following lines to your behat config yml
... extensions: seretos\BehatJsonFormatter\BehatJsonFormatterExtension: output_path: '%paths.base%/build/behat' #step_screenshots: true #save a screenshot for every selenium step
now your execution generates for every suite an json file into the output-path. if you run multiple tests on different machines, you can use the following commands to manage your json results:
$ php vendor/bin/behat-json behat:double:result:check --jsonDir=./artifacts1 \
--jsonDir=./artifacts2 \
--pattern="/[\w]*php71/"
this command search in the given directories and with pattern for json files and check, that every test only executed one time per environment
php vendor/bin/behat-json behat:merge:result --jsonDir=./artifacts1 \
--jsonDir=./artifacts2 \
--pattern="/[\w]*php71/" \
--output=result.json
php vendor/bin/behat-json behat:validate:result --json=./result.json \
--featureDir=./features
统计信息
- 总下载量: 1.91k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-07