seretos/behat-json-formatter 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Build Status

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固