Fork me on GitHub
#kaocha
<
2019-01-15
>
plexus04:01:14

A new release is out with the new ^:kaocha/pending feature, and with a new "hooks" plugin. This provides a more lightweight alternative to writing full plugins, you simply point at a function that should be used as a hook.

plexus04:01:22

so this thing ^^^ is now implemented, you just need to enable the :kaocha.plugin/hooks plugin. Do note that as with hooks inside plugins, these functions need to return their first argument (possibly updated), so if e.g. you want to run (st/instrument) you have to write a wrapper function that calls instrument and then returns its argument.

orestis08:01:25

Hi! Thanks for Kaocha, it’s very friendly and finally our Travis CI logs make sense 🙂

orestis08:01:20

I was looking at Kaocha-cljs, but I’d like to integrate it with shadow-cljs somehow, to run node unit tests. Currently shadow has its own test runner, which looks like this: https://github.com/thheller/shadow-cljs/blob/master/src/main/shadow/test/node.cljs

orestis08:01:03

The main difference is that shadow runs the tests always in a CLJS mode, so things like pretty-printing diffs etc have to be CLJS compatible… which I’m not sure Kaocha handles? It looks like it reports the test results via a websocket somehow?

plexus12:01:14

Hi @orestis, would you mind copying what you wrote here into an issue on the kaocha-cljs repo? I'm really unfamiliar with shadow-cljs, so this is going to take some figuring out to see what is possible.

orestis12:01:54

For sure! I’ll also ping the maintainer of shadow-cljs just in case he’s interested in this. Thanks again 🙂