kaocha

mpenet 2022-05-20T11:12:58.857989Z

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

mpenet 2022-05-20T11:13:28.531059Z

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

mpenet 2022-05-20T11:17:03.164269Z

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

mpenet 2022-05-20T11:17:16.157849Z

so there's no magic unqualifying there

plexus 2022-05-20T11:29:30.121979Z

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

plexus 2022-05-20T11:31:08.201719Z

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.

mpenet 2022-05-20T11:54:13.700229Z

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

plexus 2022-05-20T14:58:02.572919Z

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

mpenet 2022-05-20T15:01:23.195439Z

good point 😛