This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-20
Channels
- # announcements (1)
- # babashka (74)
- # beginners (84)
- # bristol-clojurians (3)
- # cider (2)
- # clara (14)
- # cljdoc (18)
- # cljsrn (7)
- # clojure (29)
- # clojure-australia (4)
- # clojure-europe (34)
- # clojure-italy (3)
- # clojure-nl (5)
- # clojure-seattle (1)
- # clojure-uk (33)
- # clojuredesign-podcast (2)
- # clojurescript (33)
- # code-reviews (17)
- # core-async (10)
- # cursive (8)
- # datomic (21)
- # depstar (45)
- # dirac (4)
- # duct (10)
- # emacs (1)
- # fulcro (8)
- # jackdaw (2)
- # jobs (1)
- # kaocha (11)
- # leiningen (2)
- # off-topic (8)
- # pathom (35)
- # pedestal (3)
- # protorepl (13)
- # rdf (39)
- # re-frame (23)
- # reagent (2)
- # releases (1)
- # remote-jobs (6)
- # reveal (2)
- # rewrite-clj (18)
- # shadow-cljs (51)
- # sim-testing (2)
- # spacemacs (2)
- # tools-deps (37)
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?
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?
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"}}
Ahh, thanks @U07FP7QJ0. I have a better understanding of what happened now
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