Fork me on GitHub

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