Skip to content

HomeCEU/BehatChainedStepsExtension

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

BehatChainedStepsExtension

This Behat Extension does two things:

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

Installation

Install using composer:

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

Configuration

Configure the Extension in behat.yml. You must use the formatter.

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.

About

An Extension for Behat that improves Chained Steps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%