This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-22
Channels
- # announcements (4)
- # babashka (1)
- # beginners (35)
- # biff (1)
- # calva (34)
- # clj-kondo (21)
- # clojure (38)
- # clojure-europe (49)
- # clojure-norway (8)
- # clojurescript (12)
- # emacs (21)
- # events (1)
- # fulcro (16)
- # joyride (1)
- # malli (1)
- # nbb (7)
- # observability (2)
- # pathom (4)
- # polylith (6)
- # reagent (4)
- # releases (1)
- # shadow-cljs (16)
- # squint (23)
- # tools-build (7)
I've got everything working — both back-end and front-end, thank you for your help! I've also finished renaming all namespaces, and now can enjoy coding with polylith.
One last thing left: in our backend-api project there is a bunch of kaocha tests. I'm trying to run them with polylith-kaocha, having a project configured like this:
"backend-api" {:alias "api"
:test {:create-test-runner polylith-kaocha.test-runner/create}}
But I'm getting this error from the poly tool:
Invalid test runner configuration for project backend-api. Unable to load test runner constructor polylith-kaocha.test-runner/create.
I have followed instructions from polylith-kaocha and added the installes to the :poly
alias of the main deps.edn
, and to the :test
alias of the project deps.edn
.
What am I missing?
UPDATE: Tests do run when launched from command line with clojure -Srepro -M:poly test
, the error is within the poly tool.
UPDATE 2: I figured it out. In order to run from the tool, I need to start the tool with clojure -Srepro -M:poly shell
. Is this ok?
I'm a bit confused. What command wasn't working?
-Srepro
shouldn't generally be needed (it excludes your user-level deps.edn
-- but your project-level deps.edn
takes precedence so nothing should be affecting poly
from the user-level file).
Oh, are you talking about the poly
script? Perhaps you're running an old version -- the test-runner support was a fairly recent addition.
I always run poly
via -M:poly
so I can control which version a particular project uses -- and so I don't rely on whatever developers might have installed locally.
Thanks @U04V70XH6, I'm doing the same now