Fork me on GitHub
#polylith
<
2022-10-22
>
licht1stein17:10:52

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?

seancorfield17:10:15

I'm a bit confused. What command wasn't working?

seancorfield17:10:19

-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).

seancorfield17:10:13

Oh, are you talking about the poly script? Perhaps you're running an old version -- the test-runner support was a fairly recent addition.

seancorfield17:10:52

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.

licht1stein00:10:50

Thanks @U04V70XH6, I'm doing the same now