Skip to:
After a Story is restarted, StoryReporter.restartedStory() call is made after StoryReporter.afterStory() is invoked.
This results in a Closed stream for non System.out based OutputStreams.
As a result of this issue, is not possible to know that Story has been restarted, other than looking the System.out stream.
A Maven project that demostrates this (while debugging!), has been created at https://github.com/rjimgal/jbehave-stream-closed
PR https://github.com/jbehave/jbehave-core/pull/90 has been created with a possible solution.
However please have a look to https://groups.google.com/forum/#!topic/jbehave-dev/0D84Rrd0kA4 before.
After a Story is restarted, StoryReporter.restartedStory() call is made after StoryReporter.afterStory() is invoked.
This results in a Closed stream for non System.out based OutputStreams.
As a result of this issue, is not possible to know that Story has been restarted, other than looking the System.out stream.
A Maven project that demostrates this (while debugging!), has been created at https://github.com/rjimgal/jbehave-stream-closed