Hi,

I'm currently using @BeforeStory to delete data from all the tables in a
database, then @Given steps to populate with the test data. Using
@BeforeStory means that I can now only have 1 Scenario in each Story, as
some of the test data is duplicated across the different scenarios. But when
I use @BeforeScenario instead, the code to clear the database is called once
for the scenario, but then once also for each GivenStory within a scenario.

I'm after a middle way, some way to call code every scenario, but then not
for each of the GivenStories.

Thanks,
Dan.

Reply via email to