StoryReporter.restartedStory() is printed on a Closed Stream in PrintStreamOutput Class

Description

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

Activity

RafaelJ July 28, 2015 at 11:16 AM

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.

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created July 28, 2015 at 10:48 AM
Updated July 29, 2015 at 4:26 PM
Resolved July 29, 2015 at 4:26 PM