polylith-kaocha icon indicating copy to clipboard operation
polylith-kaocha copied to clipboard

Support passing cli args to kaocha

Open ieugen opened this issue 2 years ago • 1 comments

I think it's quite important to be able to pass cli apps to kaocha. Kaocha options can be added to config for more stable options.

Some options I care about:

  • fail-fast
  • run specific tests
  • print test plan
  • print configuration
  • use specific reporters
  • etc

Suggestion: I know some programs work by passing all args after this character sequence -- . This might work.

Having this feature would make debugging test issues like https://github.com/imrekoszo/polylith-kaocha/pull/7 .

ieugen avatar Aug 24 '22 12:08 ieugen

This should already be possible to implement in consumers of p-k by providing a :polylith-kaocha/runner-opts->kaocha-poly-opts hook and any of the :polylith-kaocha.kaocha-wrapper/post-*-config hooks.

What I don't know is how to call poly test with extra args in a way that they will be available in the former.

imrekoszo avatar Aug 30 '22 17:08 imrekoszo