kaocha

tmk 2025-09-24T12:11:48.867149Z

Hi Everybody, I am really puzzled ๐Ÿค”๐Ÿคจ... When I use the following :test-paths ["test/unit"] for a :directives test suite in tests.edn, I can run kaocha-bb --focus gfi.parser.directives.if-test and the tests in test/unit/gfi/parser/directives/if_test.clj are correctly run. But with :test-paths ["test/unit/gfi/parser/directives"] the same invocation as above yields the following error message

ERROR in directives (main.clj:966)
Failed loading tests:
Exception: java.io.FileNotFoundException: Could not locate gfi/parser/directives/if_test.bb, gfi/parser/directives/if_test.clj or gfi/parser/directives/if_test.cljc on classpath.
Why?!?

tmk 2025-10-02T07:16:34.813709Z

@plexus Many thanks for your explanation. It makes it very clear what happening.

plexus 2025-10-01T12:49:42.240269Z

if the namespace name is gfi.parser.directives.if-test, then it's going to look for a file names gfi/parser/directives/if-test.{clj,cljc,bb} on the classpath. If it does a lookup from test/unit/gfi/parser/directives, that means it's going to look for test/unit/gfi/parser/directives/gfi/parser/directives/if-test.{clj,cljc,bb}

๐Ÿ‘ 1