Is the binstub necessary for deps.edn projects, or simply just a convenience?
For my deps.edn projects I defined a :kaocha
alias and successfully call the runner using clj -A:kaocha
In ~/.clojure/deps.edn
I have the following
:kaocha
{:extra-deps {lambdaisland/kaocha {:mvn/version "0.0-554"}}
:main-opts ["-m" "kaocha.runner"]}
The tests run on a few simple projects I have that use the clojure.test
unit tests.
As this is the first time using kaocha, just wanted to check I wasn't missing something. Thank you.@jr0cket maybe $CLJ_CONFIG
is empty, tought it shouldn't matter https://github.com/clojure/tools.deps.alpha/blob/a5f49e4cebec070d22316e848f2be9792f24f8c2/src/main/clojure/clojure/tools/deps/alpha/reader.clj#L99-L109
Sorry, I dont understand this reply. The .clojure/deps.edn
configuration file is being used in all the deps.edn projects I have created so far. I just havent seen the advantage of using a binstub, as recommended in the project readme.md file.
The binstub is not necessary but it is a convention. See the recent discussion in #tools-deps for some of the rationale.
Ah yes, after reading https://cljdoc.org/d/lambdaisland/kaocha/0.0-554/doc/2-installing I have a clearer idea of what the binstub could be used for. I will also look at the tools-deps discussions. Thanks.