You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, it seems that StoryReporter.storyCancelled() is only invoked when the executing thread throws an InterruptedException. In my example I catch this exception without re-trowing it.
Looking into the JBehave code it seems that it is only EmbedderMonitor and PerformableTree.RunContext that get notified when the main thread cancels a story due to a timeout.
If a story exceeds its timeout but handles
InterruptedException
and completes without further exceptions, then it is reported as passing.On the other hand, the Maven build fails due to
CancellationException
.Sample project: https://github.com/csabakoncz/serenity-projects/tree/master/serenity-timeouts
Invoking
mvn clean verify -Djbehave.threads=1
results inThis might be due to
SerenityReporter
ignoringstoryCancelled
notifications from JBehave:I am using Serenity 1.1.34 and JBehave 4.0.5
The text was updated successfully, but these errors were encountered: