Fork me on GitHub
#kaocha
<
2022-05-20
>
mpenet11:05:58

what's the equivalent with -X of clj -M:kaocha -m kaocha.runner --focus :unit ?

mpenet11:05:28

I tried -X:kaocha :focus :unitbut that doesn't seem to work

mpenet11:05:03

oh! clj -X:kaocha '{:kaocha.filter/focus [:unit]}' seems to do it

mpenet11:05:16

so there's no magic unqualifying there

plexus11:05:30

nope, if that's the interface you are using then "it's just data", so you get the exact same affordances as in tests.edn

plexus11:05:08

and we don't have magic auto-qualifiying of a top-level :focus in tests.edn since that's not something you typically have in there. We do have it at the test suite level. See kaocha.config/normalize. I'd be ok with us adding a line in there to qualify a top-level :focus to :kaocha.filter/focus.

mpenet11:05:13

I prefer when there's "one way to do it" personally. I am not sure I want to encourage this

plexus14:05:02

If there was one way to do it we wouldn't have -X :)

mpenet15:05:23

good point 😛