kaocha 2025-07-08

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

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  {}}

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

Hah! It worked! Thanks a lot!

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

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

to be fair that's probably a seq of symbols