is anybody using launchpad to run kaocha tests? it is so convenient I want to use it for everything now 😄
aaah, right, good point. I don't how to use deps.local.edn via babashka tasks (yet).
In that case, I'm also curious about further answers to this thread!
the nice thing is that launchpad uses deps.local.edn
that is why I was trying to use that..I can specify any alias (including ones in $HOME/.clojure ) without ever committing any code
Using a bash script to invoke Kaocha is quite straight forward.
1. create a bin/kaocha file
2. chmod +x bin/kaocha
3. put the below content inside of it.
#!/bin/bash
exec clojure -A:test -M -m kaocha.runner "$@"I tend to use babashka tasks for this. If you have Launchpad, you probably already have a bb.edn file.
Something like this:
;; in bb.edn
{:tasks
{test (apply clojure "-M:kaocha" *command-line-args*)}}
(depending on your deps.edn Kaocha alias!)
Then bb test, bb test --watch, bb test --help, you name it.I tried
:alias {:launchpad/kaocha
{:main-opts ["-m" "kaocha.runner" "--watch"]}}
But it fails cause probably it still want to drop me into a REPL or something