spock
spock copied to clipboard
Refactoring runStatus processing.
This pull-request based on #558.
Main idea is to make failure handling more explicit and keep abort logic and execution logiс together.
Instead of maintaining runStatus field, InvokeException is thrown and handled on top of current scope. And now it is easy to understand that failures in iterations does not affect each other and do not abort feature execution.
This PR is preparation for adding retry logic: instead immediately failure registration, failures can be collected and registered only when all attempts will fail.