Fork me on GitHub
#polylith
<
2023-09-20
>
jasonjckn05:09:26

is there a way to run either (a) kaocha code coverage (b) kaocha test suite (c) koacha watcher in https://github.com/imrekoszo/polylith-kaocha but not all at once, usually this is done via kaocha cli —with-profile

imre08:09:37

what do you mean by "not all at once"?

imre08:09:00

cloverage is supported by the project, there is example code for it as well https://github.com/search?q=repo%3Aimrekoszo%2Fpolylith-kaocha%20cloverage&amp;type=code

imre08:09:24

watch is not currently supported and I don't know how that could work tbh

imre08:09:04

cli args aren't currently supported either: https://github.com/imrekoszo/polylith-kaocha/issues/6

imre08:09:34

This project is not mature by any means, more like an mvp and since making it public I haven't had time to properly maintain it. Proceed with caution and expect roadblocks

jasonjckn18:09:21

I saw it was unmaintained, but from my tests, it worked surprisingly well. I don't think it need much maintenance work. > what do you mean by "not all at once"? In my kaocha EDN , i'll have multiple profiles setup like the screenshot

jasonjckn18:09:16

then execute

exec clojure ...  -m kaocha.runner --config-file etc/kaocha/config.edn profile-name

jasonjckn18:09:05

in my current CICD setup, i need to be able to run -just- code coverage, or -just- unit tests

jasonjckn18:09:28

i'll see if i can find a workaround... but what I described is extremely common kaocha setups, and in their docs.

jasonjckn18:09:50

even just being able to pass KAOCHA_PROFILE on the command line, would probably work here.

jasonjckn18:09:34

would you accept a PR for environment variables? that's the path of least resistance here

jasonjckn18:09:44

issue #6 is hard blocked

jasonjckn18:09:24

i guess since its not maintained.. i'll just fork it and merge upstream changes

imre18:09:25

Prs are welcome however I don't know when I can review

imre18:09:44

But with git deps it should be easy to just use a fork

👍 1
jasonjckn18:09:50

what test runner do you personally use if not this one?

jasonjckn18:09:35

kaocha seems like the only maintained code coverage testing tool

imre18:09:40

Our conversion to polylith is currently shelved due to the large effort required to adapt our processes clashing with more urgent work

imre19:09:19

The current state of p-k was enough for the POC

jasonjckn05:09:06

also what are folks using for code coverage if it’s not koacha