Fork me on GitHub

hello, firstly thanks for kaocha. i was sceptical at first but once you get to know it it's a big step up from clojure.test


i wonder if anyone could help me with what i'm trying to achieve. we are using kaocha to run some browser tests via chrome devtools protocol, and i want to capture a screenshot whenever an assertion fails or an exception is thrown. assertion failing i achieved using a reporter and installing a defmethod for :kaocha/fail-type and i thought i could do the same for :error but it is called outside the stack from where the exception happened, which means that i can't access the browser anymore to take the screenshot