Fork me on GitHub
#polylith
<
2022-09-10
>
seancorfield01:09:46

@imre Q for you about Polylith/Kaocha. Well, two Qs I guess. 1. What are the benefits of switching to the Kaocha plugin for Polylith, for default OOTB setup? 2. What exactly is required to switch from the default test runner to the Kaocha one? i.e., the bare minimum. Thanks.

👍 2
Eugen07:09:08

not @imre but I can share my experience with this. kaocha IMO offers better out of the box user experience. better reporting, plugins and docs (junit test reports, etc). at least that is what attracted me to it. unfortunately polylith kaocha did not work so great for me. our project was not in a great shape when I went dor tests, had lots of errors and was not easy to figure out why. also I could not access kaocha cli features via poly kaocha. they are not exposed. I would say that having kaocha cli and poly kaocha be on feature parity is pretty important IMO. that is my opinion anyway.

Eugen07:09:36

the above is related to rcf as well. also got busy with other stuff to try poly kaocha again. but I hope to give it a shot again in next months after I brush off on poly usage and inner workings

imre11:09:58

@U04V70XH6 1/ the sole benefit of p-k is that it enables one to use kaocha with poly. This also means that if you don't want or need kaocha, it is of no value to you. I like kaocha and I detailed that a number of times on this slack already, most recently https://clojurians.slack.com/archives/C013B7MQHJQ/p1661339367512739?thread_ts=1661284919.120099&amp;cid=C013B7MQHJQ. 2/ just follow the first 3-4 steps https://github.com/imrekoszo/polylith-kaocha#1-add-dep-to-poly-alias: add dep to poly alias, add to workspace.edn, add dep to projects to be tested, run tests Feel free to ping me if you run into difficulties

imre11:09:45

As @U011NGC5FFY noted not all kaocha features can easily be used with p-k OOTB, for example cli args or watch mode. Adding support for these would most likely also require some new plumbing in the poly tool as well.

seancorfield16:09:10

Thanks @imre I've never used Kaocha so I'm curious to see what differences it brings to Polylith OOTB. Looks pretty straightforward to switch over to it so maybe I'll give it a try next week.

Eugen17:09:25

pls share your experience

imre18:09:50

Imo kaocha is great for its clear concept and excellent extensibility. It's my go-to tool for any serious project. Will be interested to hear your thoughts