Details
Description
When I run a story, JBehave exits without waiting for the story results.
The same stories work perfectly in version 3.9.3.
Activity
Mauro Talevi
made changes -
Field | Original Value | New Value |
---|---|---|
Fix Version/s | 3.9.5 [ 20598 ] | |
Summary | JBehave exits immaturely | FailingUponPendingSteps strategy not honoured |
Mauro Talevi
made changes -
Resolution | Fixed [ 1 ] | |
Assignee | Mauro Talevi [ maurotalevi ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
I tracked down the problem and it resides in jbehave-core/src/main/java/org/jbehave/core/embedder/StoryManager.java:
In the above code, the if ( runningStory.isStarted() ){ does not have any else, so if the stories have not yet started, allDone is left true and JBehave exits without waiting for the stories to finish running.