2017 © Pedro Peláez
 

behat-extension behat-3-json-formatter

Behat extension for JSON output

image

gturkalanov/behat-3-json-formatter

Behat extension for JSON output

  • Monday, December 4, 2017
  • by gturkalanov
  • Repository
  • 1 Watchers
  • 0 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

Behat 3 JSON formatter

Behat 3 extension for generating JSON results, (*1)

, (*2)

How ?

  • The tool can be installed easily with composer.
  • Defining the formatter in the behat.yml file
  • Modifying the settings in the behat.ymlfile

Installation

This extension requires:, (*3)

  • PHP 5.3.x or higher
  • Behat 3.x or higher

Through composer

The easiest way to keep your suite updated is to use Composer:, (*4)

Install with composer:, (*5)

    composer require gturkalanov/behat-3-json-formatter

Install with composer.json:, (*6)

{
    "require": {
        "behat/behat": "3.*@stable",
        "gturkalanov/behat-3-json-formatter": "dev-master",
    },
    "minimum-stability": "dev",
    "config": {
        "bin-dir": "bin/"
    }
}

Basic usage

Activate the extension by specifying its class in your behat.yml:, (*7)

default:
  suites:
    ... # All your awesome suites come here

  formatters:
    json_formatter:

  extensions:
    gturkalanov\Behat3JsonExtension:
        prettify: true

Extension configuration

  • prettify - Define if the output of the console is one liner or prettified json
  • file_name - If this parameter is set there will be no console output but the result will be saved in json file with name - your input here
  • path - There is a default path set build/json_results . You can change it here.

The Versions

04/12 2017

dev-master

9999999-dev

Behat extension for JSON output

  Sources   Download

MIT

The Requires

 

by Georgi Tarkalanov

test testing extension json behat formatter drupal web