I'd like to execute some action when Spock test fails. Specifically, take a screenshot. Is it possible? How to do it?

Edit
Report