Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.34 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.34 KB

SpecFlow.PeekSteps

A plugin to peek at the SpecFlow steps

Installation

SpecFlow.PeekSteps

Usage

The plugin works by adding extention methods to ScenarioContext and ScenarioStepContext

Context Extension method Details
ScenarioContext GetAllSteps() Get all steps information
ScenarioStepContext GetCurrentStep() Get details about the currently executing step
. GetPreviousStep() Get details about the previously executed step
. GetNextStep() Get details about the next step to be executed

StepDefinition

The step information is presented as StepDefinition instead of StepInfo object. However, the information present in StepDefinition is same as provided by StepInfo.

Limitation

The steps that are invoked from within step bindings are not visible. These invoked steps would have access to Previous and Next steps information, but most likely it would be incorrect.

Example

TODO

Build status

Build status