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

Show:
RafaelJ
July 28, 2015, 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.

Assignee

Unassigned

Reporter

RafaelJ

Labels

None

Fix versions

Priority

Major
Configure