2017 © Pedro Peláez
 

behat-extension chained-steps-extension

Chained Steps extension for Behat

image

jmauerhan/chained-steps-extension

Chained Steps extension for Behat

  • Thursday, February 27, 2014
  • by jmauerhan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 41 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

BehatChainedStepsExtension

This Behat Extension does two things:, (*1)

  • Trigger BeforeStep and AfterStep hooks when using Chained Steps
  • Display pass/fail output in console for Chained Steps

Installation

Install using composer:, (*2)

"jmauerhan/chained-steps-extension": "dev-master@dev"

Configuration

Configure the Extension in behat.yml. You must use the formatter., (*3)

default:
  extensions:
    JMauerhan\ChainedStepsExtension\Extension:
      trigger_hooks: true
      show_chained_steps: true
  formatter:
    name: 'JMauerhan\ChainedStepsExtension\PrettyChainedStepsFormatter'

Options/Defaults

trigger_hooks: true
show_chained_steps: true (If trigger_hooks is false, show_chained_steps must be false).
tester:
  step:
    class: JMauerhan\ChainedStepsExtension\StepTester

Known Limitations or Quirks

  • Currently the teigger_hooks and show_chained_steps options do not change when set to false, this is a todo. The extension needed some options to work, so I put these in as placeholders
  • Chained Steps used within Scenario Outlines will not be printed by the formatter. The @BeforeStep and @AfterStep hooks will still be triggered between chained steps during the Scenario Outline Examples execution.

The Versions

27/02 2014

dev-master

9999999-dev http://behat.org

Chained Steps extension for Behat

  Sources   Download

MIT

by Jessica Mauerhan

behat