2017 © Pedro Peláez
 

library behat-json-formatter

this library extends behat with an json formatter and publish commands to manage this generated json files

image

seretos/behat-json-formatter

this library extends behat with an json formatter and publish commands to manage this generated json files

  • Thursday, March 1, 2018
  • by Seretos
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,227 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 52 % Grown

The README.md

BehatJsonFormatter

Build Status, (*1)

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", (*2)

this library provides also different commands to validate and merge multiple generated json files., (*3)

Installation

execute the following command as below, (*4)

$ composer require seretos/BehatJsonFormatter

Usage

add the following lines to your behat config yml, (*5)

...
  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:, (*6)

$ 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, (*7)

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

The Versions

01/03 2018

dev-master

9999999-dev https://github.com/Seretos/BehatJsonFormatter

this library extends behat with an json formatter and publish commands to manage this generated json files

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arne von Appen

json behat formatter

01/03 2018
20/02 2018
20/02 2018
20/02 2018
11/02 2018
10/02 2018
10/02 2018
07/02 2018

v0.0.2

0.0.2.0 https://github.com/Seretos/BehatJsonFormatter

this library extends behat with an json formatter and publish commands to manage this generated json files

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arne von Appen

json behat formatter

07/02 2018

v0.0.1

0.0.1.0 https://github.com/Seretos/BehatJsonFormatter

this library extends behat with an json formatter and publish commands to manage this generated json files

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arne von Appen

json behat formatter

07/02 2018

v0.0.0

0.0.0.0 https://github.com/Seretos/BehatJsonFormatter

this library extends behat with an json formatter and publish commands to manage this generated json files

  Sources   Download

MIT

The Requires

 

The Development Requires

by Arne von Appen

json behat formatter