kaocha

2025-11-20T13:08:34.328939Z

Hi folks, I have a project that is using kaoch. I am trying to run a single test-var with kaoch.repl/run. Instead of running a single test, it runs all of the tests in my project. So this for example,

(k/run 'clojure-skills.cli-db-test/test-example) 

2025-11-20T13:09:21.326569Z

This is my project, https://github.com/iwillig/clojure-skills

2025-11-20T13:09:33.730159Z

And this is my test config, https://github.com/iwillig/clojure-skills/blob/main/tests.edn

2025-11-20T13:53:34.559359Z

When I removed my tests.edn configuration running a single test seems to work.

imre 2025-11-20T15:36:13.624709Z

can try passing in an empty map as the second arg to run perhaps?

imre 2025-11-20T15:36:47.953459Z

this is what I use in my editor:

imre 2025-11-20T15:37:03.919499Z

(do
  (require 'clojure.spec.alpha 'expound.alpha 'kaocha.repl '~file-namespace)
  (binding [clojure.spec.alpha/*explain-out* expound.alpha/printer]
    (kaocha.repl/run '~current-var {:kaocha/reporter ['kaocha.report/documentation] :kaocha.plugin.capture-output/capture-output? false})))

imre 2025-11-20T15:37:23.952839Z

(editor injects test symbol into ~current-var )

2025-11-20T13:08:40.395449Z

Runs everything. Has anyone run into this before?