Fork me on GitHub
#kaocha
<
2020-04-22
>
plexus06:04:31

@rgm I think you need lambdaisland.deep-diff.printer/register-print-handler!

plexus06:04:17

have a look at kaocha.master-combinators for an example

plexus06:04:26

actually, no. scratch that. The issue here is that these assertions are serialized to transit, and then reported on the kaocha/clj side. See kaocha.cljs.websocket-client. We don't currently have a mechanism for registering new handlers there.

plexus06:04:19

although, not sure of that either. We have some stuff in place to generate these messages on the cljs side and send them over the wire, where it's using cljs.print and pjstadig.print, but since you're seeing diff-style output it's seems that's actually not getting picked up. We only diff on the clj side, deep-diff wasn't available yet for cljs when kaocha-cljs was written

plexus06:04:59

which reporter(s) are you using? the kaocha built-in ones or something else?

rgm13:04:30

Hi Arne … yeah, just the built-in one.

rgm13:04:45

Thinking about it with a clear head having slept, maybe the pragmatic solution here is to make use of the msg in (clojure.test/is form msg)