I’m trying to figure out the best way to separate slower tests (such as integration tests) in a Kaocha setup.
I’ve added a metadata tag like ^:slow to the appropriate tests and updated my test.edn to skip them by default:
{:skip-meta [:slow]}
This works fine when running Kaocha normally — the slow tests are skipped. However, I’m running into two issues:
-
When using
kaocha.watchwith:(kaocha.watch/run (kaocha.repl/config))the
:skip-metaconfig seems to be ignored, and the slow tests still run. -
When I try to run only the slow tests manually using:
bin/kaocha --focus-meta slowthey are skipped because of the
:skip-metasetting intest.edn.
Question:
What’s the best practice for handling this kind of setup — where I want slow tests to be skipped by default but still runnable via focus when needed? Is there a better way to configure this or override :skip-meta dynamically?
Thanks in advance!