polylith

timo 2024-06-19T08:02:52.228879Z

So I made mock components now and am having profiles :+default and :+mock. How do I run poly test with the mock components instead of the default ones? Should I add the mock-components to the :test alias? Then I am getting

Error 108: Components with an interface that is implemented by more than one component are not allowed for the development project. They should be added to development profiles instead: psql-fake, smtp-mock

tengstrand 2024-06-19T09:38:43.621959Z

Include +mock as parameter to the test command.

timo 2024-06-19T09:39:12.771529Z

alright, thanks. 👍

timo 2024-06-19T16:40:12.488839Z

Somehow when running clj -M:poly test +mock :all it starts my +default -components. It should start the mock components with this command, right?

tengstrand 2024-06-19T18:46:20.404809Z

Have you included the component associated with the default profile in development? It should only live in the default profile. If you still have problems, you can export the workspace and send it to me, and I will have a look.

🙏 1