Fork me on GitHub
#spacemacs
<
2022-01-12
>
practicalli-john15:01:03

I enjoy using https://github.com/lambdaisland/kaocha as a test runner for Clojure. I saw https://github.com/magnars/kaocha-runner.el package that runs Kaocha test runner from within Emacs. Would this be of interest to add to the Spacemacs Clojure layer? I am thinking of proposing adding it as an optional feature, turned on by a Clojure layer variable. Does this sound useful? Thanks.

alexdavis15:01:50

I have that setup manually so it would be useful to me

practicalli-john15:01:14

After getting things wrong a lot last night, I figured out how to add it correctly (well working) this morning. I'll raise an issue on Spacemacs and then submit a PR (hopefully by the end of today)

practicalli-john15:01:55

Some of the benefits of using Kaocha seem to be • using fail-fast tests, so you dont have to wait for a full test run to end • a bit faster to run than cider-test, especially after the initial run (I assume its only running tests that have changed) I'll try out some of the other kaocha features and see if they are applicable.

practicalli-john15:01:16

I've raises a feature request issue on Spacemace repository, with the rough example code to add kaocha-runner as an optional feature. It has key bindings that seem to be sensible to me, feel free to comment https://github.com/syl20bnr/spacemacs/issues/15267

practicalli-john23:01:07

I've raises a pull request to add kaocha-runner package to the Clojure layer https://github.com/syl20bnr/spacemacs/pull/15268