Skip to content

A SpecFlow plugin for reusing background steps across multiple features and scenarios.

License

Notifications You must be signed in to change notification settings

diegofrata/SharedBackground.SpecFlowPlugin

Repository files navigation

SharedBackground.SpecFlowPlugin

NuGet Status NuGet Status

A SpecFlow plugin to share background steps with multiple features and scenarios.

You can use it with a Background statement:

Background: the background steps of 'SharedBackground' have been executed

Or as a step definition:

Given the background steps of 'SharedBackground' have been executed

You can also reference specific scenarios, rather than a background definition:

Given the scenario 'Add two numbers' of 'SharedBackground' has been executed

It also support recursively importing scenario definitions:

@ignore
Scenario: Enter first number
  Given I have entered 50

@ignore
Scenario: Enter second number
  Given the scenario 'Enter first number' has been executed
  And I have also entered 50  

Scenario: Add two numbers
  Given the scenario 'Enter second number' has been executed
  When I add the two numbers
  Then the result is 100

Installation

Just add SharedBackground.SpecFlowPlugin NuGet package to your SpecFlow test project and you're good to go.

About

A SpecFlow plugin for reusing background steps across multiple features and scenarios.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published