Hi,
no, this behaviour is not currently available. GivenStories are
recursively run.
What you could do is set meta properties at a scenario level which are
passed to the given stories and then in your implementation take notice
of these properties to run or not the relevant steps.
Otherwise, structure your given dependency tree in such a way as to
avoid duplication.
Feel free to suggest a way to configure this behaviour you're after.
Cheers
On 08/05/2012 04:59, Jorge Pombar wrote:
I have all the stories of my project in a single folder "src/main/stories"
I'm building my test cases/stories in small blocks. So I test Story1
and then I test Story2 but it depends on Story1 to have been
completed. So I'm using GivenStories:
-Story1.story
-Story2.story (uses GivenStories: Story1.story)
-Story3.story (uses GivenStories: Story2.story)
I'm wondering if there is a way to add a meta tag on Story1 and Story2
that tells the framework not to run them because they will be run as
part of Story3.story
Thanks for your help,
Enrique