Use StoryControls().doIgnoreMetaFiltersIfGivenStory(true)
> On 5 May 2014, at 15:33, Hans Schwäbli <bugs.need.love....@gmail.com> wrote: > > I discovered an unexpected behavior when I used meta filtering and a given > story. > > The meta filter looks like this: +component sales > > This runs a story (lets call it sales.story) because it containes the meta > information "@component sales". > > The sales.story uses "GivenStories: login.story". That given story does not > contain any meta information. > > My intuitive expectation is that when I run stories using the meta > information filter "+component sales" that it does not only run sales.story > but also its given story since it is a precondition. But it does not run the > given story. > > I could solve that by adding a meta information to login.story like > "@component login" and using this meta filter: +component sales login. But > this is not transparent to me. I would have to analyse what GivenStories are > used in the stories I want to run in order to define the right meta > filtering. That can be very tricky and error-prone. > > My feeling is that it would be logical that given stories (and its transitive > given stories) are always executed if their parent story is matching the meta > filtering. Or what do you think?