Fork me on GitHub
#kaocha
<
2022-08-09
>
Hugh Powell07:08:39

Hey folks, does anyone know if I can user (kaocha.repl/run ...) to run a specified fdef? And if so, how?

imre12:08:01

(kaocha.repl/run 'my.ns/fn-name) should work I believe

Hugh Powell04:08:43

Awesome, thanks for that. I thought I'd tried that before, but didn't realise aliasing wouldn't work 🙇

Noah Bogart16:08:24

I'm experimenting with a new reporter, and I don't see any report keyword for "start of the entire test run". There's :summary "end of the entire test run", which is used by clojure.test, but nothing that allows for printing a "starting a test run". would y'all be interested in such a thing?

1
plexus15:08:27

Could be interesting. Can you tell a bit more about the use case?

Noah Bogart16:08:45

Sure! I wrote this when working on the small PR I opened: https://github.com/lambdaisland/kaocha/pull/304. My thought is I would like a reporter that says "Starting a test run", is silent until the end of the run, and then prints "Here's the summary". I tend to keep my terminal open next to my editor and having stuff constantly printing is distracting. Likewise, if I use an editor plugin to run the test inline (for example, with #conjure), I don't want the output window to be printing stuff and distracting me/keeping me from seeing other info.

Noah Bogart17:08:57

Here's a WIP for a "summary only" reporter that only prints the summary at the end and nothing else: https://github.com/lambdaisland/kaocha/pull/304