what's the equivalent with -X of clj -M:kaocha -m kaocha.runner --focus :unit ?
I tried -X:kaocha :focus :unitbut that doesn't seem to work
oh! clj -X:kaocha '{:kaocha.filter/focus [:unit]}' seems to do it
so there's no magic unqualifying there
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
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.
I prefer when there's "one way to do it" personally. I am not sure I want to encourage this
If there was one way to do it we wouldn't have -X :)
good point 😛