kaocha

Official support channel: https://clojureverse.org/c/projects/kaocha
j 2020-10-20T17:49:29.017700Z

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.

j 2020-10-20T18:09:56.018300Z

I tried putting the test alias in deps.edn, and I get the same error too. Can someone give me some pointers?

plexus 2020-10-21T07:17:07.021100Z

https://github.com/lambdaisland/kaocha/issues/159

j 2020-10-22T14:42:05.021800Z

Ahh, thanks @plexus. I have a better understanding of what happened now

practicalli-john 2020-10-20T20:45:27.018500Z

Try with kaocha version 1.0.672, I am reasonably certain that was working correctly

j 2020-10-20T20:47:56.018700Z

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.

j 2020-10-20T20:49:22.018900Z

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?

zilti 2020-10-20T21:21:20.020400Z

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

practicalli-john 2020-10-20T22:05:45.020500Z

It seems I missed testing kaocha during the last update of library version

practicalli-john 2020-10-20T23:45:13.020700Z

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"}}