Thanks Mauro
On Wed, Jan 30, 2013 at 7:19 PM, Mauro Talevi <[email protected]>wrote: > Hi, > > you're correct, you cannot generate the cross-reference without running > the stories. > > It's a step you may optionally run afterwards. > > Cheers > > > On 31/01/2013 00:12, D P wrote: > > Hello, > I would like to output a cross reference report without executing all the > stories, but I'm not sure if this is possible, does anyone know how? > Here's what I've tried so far: > > 1. I started with the tutorial found here: > https://github.com/jbehave/jbehave-tutorial/tree/master/etsy-selenium/java-spring/src/main/java/org/jbehave/tutorials/etsy > > > 2. Per the line "you may generate them on demand via the Embedder > method *generateCrossReference()" from the documentation here: ** > http://jbehave.org/reference/stable/cross-reference.html, *I attempted to > modify AnnotatedEtsyDotComStories.java by commenting out: > injectedEmbedder().runStoriesAsPaths(storyPaths()); > and adding the line of code: > injectedEmbedder().generateCrossReference(); > > This produced an empty report. > > 3. An examination of the source code for Embedder.java suggests it uses > the results of running the stories to produce the report. > > So it appears that injectedEmbedder().generateCrossReference() will > _never_ produce an report content unless > injectedEmbedder().runStoriesAsPaths(storyPaths()) is executed first. > > Any input would be appreciated > > DP > > > >
