Fork me on GitHub
#kaocha
<
2020-10-20
>
j17:10:29

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.

j18:10:56

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

practicalli-johnny20:10:27

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

j20:10:56

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.

j20:10:22

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?

practicalli-johnny22:10:45

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

practicalli-johnny23:10:13

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

j01:10:40

got it, thanks for the assist!

j14:10:05

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

zilti21:10:20

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