kaocha

kishima 2025-07-08T14:24:38.420029Z

Hello, is there a way to use the focus flag from an alias run, like: clj -X:test --focus test/namespace

kishima 2025-07-08T14:26:14.137679Z

I've been trying to do this but it executes all of my tests. My test alias looks like this:

:test  {:extra-deps {lambdaisland/kaocha {:mvn/version "1.91.1392"}
                       etaoin/etaoin       {:mvn/version "1.1.43"}
                       clj-test-containers/clj-test-containers {:mvn/version "0.7.4"}}
          :exec-fn    kaocha.runner/exec-fn
          :exec-args  {}}

Kirill Chernyshov 2025-07-08T14:36:26.691299Z

exec-fn expects different arguments. --focus is for kaocha CLI try clj -X:test :kaocha.filter/focus test/namespace

kishima 2025-07-08T14:37:46.027849Z

Hah! It worked! Thanks a lot!

kishima 2025-07-08T14:40:16.274719Z

Hm, ok, I need to find out how to pass a proper path though

kishima 2025-07-08T14:43:57.065789Z

Aaaaah you have to pass a sequence of namespaces so: clj -X:test :kaocha.filter/focus [test.namespace]

kishima 2025-07-08T14:45:26.524429Z

to be fair that's probably a seq of symbols