When using scenario level GivenStories no report is written

Description

When using scenario level given stories like so:

then no report for the story is written. Using a debugger and placing a break point in TemplatebleOutput.afterStory(boolean) one can see, that the method is called four times, once for BeforeStories and AfterStories, and twice for the executing story both times, the boolean parameter givenStory is true leading to no report being written.

Attached you find a small maven test project that reproduces the error. After executing JunitStoriesTest one would expect a "TestStory.html" in the jbehave output folder, yet none is created. After removing the GivenStories line, everything works as expected.

Assignee

Mauro Talevi

Reporter

Simon Schneider

Labels

None

Fix versions

Priority

High
Configure