Fork me on GitHub
#kaocha
<
2021-07-30
>
stathissideris14:07:43

is there a way to make kaocha report the ex-data of exceptions? I have a few failures on function specs, but the output is not very helpful:

ERROR in xxx/yyy (alpha.clj:132)
Exception: clojure.lang.ExceptionInfo: Call to #'zzz/sss did not conform to spec.

stathissideris15:07:02

(I replaced the actual names)

apbleonard16:07:35

I am wondering if there is any way to wrap all methods of a protocol? In the end I might not do this as I wanted to add timing metrics, and it didn't sound very fast! But even so I'm curious about whether it's possible to reflect on a protocol, and map over it's methods as if they were a sequence of functions, and wrap them all with logging say?

apbleonard19:08:16

Ooops - I've been looking for this message - wrong channel!