Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 774 Bytes

NUGET.md

File metadata and controls

27 lines (19 loc) · 774 Bytes

BackgroundOnce

Support once-only execution of Specflow steps in the Background, similar to Nunit OneTimeSetup.

Example

To achieve this, and be super clear about this atypical behaviour, the following approach is taken

Background:
  Given I execute Background steps1️⃣ only once
  2️⃣

Scenario: Background steps1️⃣
  Given the database engine is started
  And standard reference data is created
  
3️⃣
Scenario: Employee details can be retrieved with reference data
  ...

3️⃣
Scenario: Reference data can be updated for all employees
  ...

See more details on GitHub