Ensure AfterStory/AfterScenario steps are executed if story failed by timeout
Description
causes
Activity
Show:
Mauro Talevi March 7, 2020 at 4:12 PM
Hi Dimon, currently the timeout is calculated on the time elapsed on a single story and cannot tell which step it is executing. To cater for your usecase, we’d need to introduce this awareness.
So, while this was not done on purpose, your usecase is not currently satisfiable. That’s not to say it’s not a valid one. Earmarking it for next major release.
Currently, we're facing the next issue with stories timeout. If story is failed by timeout it doesn't execute afterStory/afterScenario methods and we're just losing all information about this story because the report can't be generated if the above methods are not executed.
Was it done on purpose? Do you have any workarounds for this?
Also, I asked the same question on stackoverflow. If somebody will post workaround there, I'll report it here and close this issue.