Fork me on GitHub
#polylith
<
2022-08-18
>
tengstrand04:08:11

Hi everyone. I have reached out to a few people and asking if they would like to be added to the https://polylith.gitbook.io/polylith/conclusion/production-systems page. If you haven’t been contacted, but want to be added, please follow the instructions on that page!

Hukka07:08:14

@imre What's the difference between using kaocha, and polylith-kaocha? Just that there's no need to duplicate the paths to kaocha config?

imre07:08:48

polylith-kaocha acts as a bridge between poly and kaocha. Out of the box poly does its own test discovery and test running. With p-k you delegelate these to kaocha. In other words, if you want poly test to run your tests via kaocha, then p-k is an off-the-shelf solution

imre07:08:13

If you don't use poly test then it's of no use

Hukka07:08:32

Is there any practical difference, apart from having that particular command work?

Hukka07:08:08

Like, does limiting tests to only where the changes have an actual effect still work?

Hukka07:08:29

Then again, I think I want to have the watch mode anyway, and that's not possible via poly, I think

imre07:08:01

Yes that was the whole point. I wanted poly's project/brick filtering combined with kaocha's plugins

Hukka07:08:21

That's a pretty big thing

imre07:08:22

Watch mode wouod be something different I'm guessing yea

imre07:08:35

I don't use that

Hukka07:08:46

But to get watch mode, I guess I have to run kaocha directly, and that means duplicating all the source and test paths?

imre07:08:49

Most likely. You might be able to get those paths from the poly tool though and script the thing

Hukka07:08:15

Uf, choices, choices

Hukka07:08:43

I think I'll go with the simplest way to get watch mode at this point. Our tests are not yet so slow that the overhead would matter

Hukka08:08:23

And we fortunately don't have many components for the same interface yet, so we can delay the project specific configuration

Daniel Gerson16:10:31

@U8ZQ1J1RR How did you go about getting watch mode working? Looking into enabling kaocha, and this is my favourite feature when I used it previously.

Daniel Gerson17:10:31

Both watch and fail-fast

Daniel Gerson17:10:25

Aside from the colourful output, I'm not even sure why you would want kaocha as a test runner without the two killer features mentioned.

Daniel Gerson09:10:14

I've just added a tests.edn at the root and have added test plans there. Using the root`deps.edn` aliases for the construction of the classpath and test directories as per normal.

Hukka11:10:09

We are using plain kaocha without any cooperation with polylith. Simply duplicating the classpath in tests.edn

1