kaocha

Hugh Powell 2022-08-09T07:17:39.826039Z

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

imre 2022-08-09T12:47:01.529939Z

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

Hugh Powell 2022-08-10T04:47:43.572679Z

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

2022-08-09T16:24:24.639349Z

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
plexus 2022-08-10T15:16:27.271449Z

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

2022-08-10T16:05:45.390659Z

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.

2022-08-09T17:40:57.864049Z

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