Not got any inheritance in my Steps classes.

I'd assumed this was the desired behaviour for @BeforeScenario, but after a
quick glance in StoryRunnerBehaviour I can't see any tests for it.

Dan.


On 8 November 2010 16:22, Paul Hammant <[email protected]> wrote:

> Are you by accident doing some inheritance for your @BeforeStory
> classes ?  JB will process the annotations in the super class too
> (this bit me recently).
>
> -ph
>
> On Mon, Nov 8, 2010 at 10:00 AM, Dan Godfrey <[email protected]>
> wrote:
> > 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.
> >
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

Reply via email to