When I run this liine from the Installing
section of the Kaocha documentation (in the very beginning). I get this error:
❯ clojure -Sdeps '{:deps {lambdaisland/kaocha {:mvn/version "1.0.700"}}}' -m kaocha.runner --test-help
Execution error (FileNotFoundException) at kaocha.specs/fn (specs.clj:82).
Could not locate clojure/test/check/generators__init.class, clojure/test/check/generators.clj or clojure/test/check/generators.cljc on classpath.
I tried putting the test alias in deps.edn, and I get the same error too. Can someone give me some pointers?
Ahh, thanks @plexus. I have a better understanding of what happened now
Try with kaocha version 1.0.672, I am reasonably certain that was working correctly
Thanks for the tip! I got some help over at #beginners and it turns out I needed to install the test.check library because kaocha.runner was calling spec, and it was calling test.check in turn. That wasn't something that I really knew to look out for, even after reading the error messages a few times.
I did turn towards your guide and deps.edn repo for guidance, but I still got the same error. I do wonder if this is a problem with the newer versions? maybe kaocha.runner didn't need test.check before?
I found a really odd behaviour of kaocha-cucumber when ran on FreeBSD and OpenJDK13. I have to add the step definitions to :extra-paths
or they won't be found; at the same time, I have to make sure :cucumber/glue-paths
in tests.edn is an empty vector, because otherwise, kaocha-cucumber will complain about duplicate step definitions. But when I do all this - it doesn't find any step definitions anymore at all
It seems I missed testing kaocha during the last update of library version
So either use version 1.0.672 of kaocha or add test.check as an extra dependency
:extra-deps {org.clojure/test.check {:mvn/version "1.1.0"}}