kaocha

Official support channel: https://clojureverse.org/c/projects/kaocha
plexus 2021-03-05T05:56:51.026100Z

it is, if you use kaocha.repl it will do a full test run, including calling plugins. It won't reload the plugins though, so you'll have to eval them yourselves (or do something like (require ... :reload) to pick up any changes before doing kaocha.repl/run

reefersleep 2021-03-05T08:24:42.026300Z

@actuallyalys_slack I added a suppressing option which can be activated through tests.edn. Do you know how I would activate it through the command line? It’s just a boolean.

reefersleep 2021-03-05T08:44:49.026500Z

I’ve described the tests.edn usage here: https://github.com/Reefersleep/gitcha

reefersleep 2021-03-05T08:45:43.027500Z

How would one invoke a plugin-specific argument when calling from the command line? I’m referring to the warning suppressal that I’m describing here: https://github.com/Reefersleep/gitcha#warning

plexus 2021-03-05T10:14:13.027800Z

Seems this plugin does not allow for that

plexus 2021-03-05T10:15:45.028Z

it would need to implement the cli-options hook first, as shown here: https://github.com/lambdaisland/kaocha/blob/main/src/kaocha/plugin/notifier.clj#L136-L146

plexus 2021-03-05T10:16:54.028300Z

and then check for the option in config, which gitcha does, but the cli-option is missing. Gitcha should add an option like --gitcha-suppress-warnings and check for that

reefersleep 2021-03-05T10:26:47.028500Z

Right you are! I’ll go ahead and do that 🙂

reefersleep 2021-03-05T10:26:48.028700Z

Thanks!

reefersleep 2021-03-05T10:39:13.030500Z

@plexus I'm curious to hear if this was how you envisioned people making plug-ins, or if you had imagined some other project structure.

plexus 2021-03-05T10:41:28.030700Z

yeah this looks about right, just a file with a defplugin, you don't need more than that

1🍻
reefersleep 2021-03-05T12:26:48.031Z

Cheers!

enn 2021-03-05T14:53:53.031200Z

Hmm, when I use kaocha.repl/run it does not write the results.xml file that the junit plugin is supposed to write. Possibly this is because my .kaocha-config.edn is not being picked up. Is there a way to manually load that?