kaocha

2023-07-13T14:15:46.110829Z

Hi, I'm trying to run a subset of tests with kaocha-cljs2. this works to just run a given ns:

(kaocha.repl/run
    {:kaocha/tests
     [{:kaocha.testable/id   :browser-tests
       :kaocha.testable/type :kaocha.type/cljs2
       :kaocha.cljs2/timeout 30000}]
     :kaocha.filter/focus [:xyz]})
but I want to run for ns's matching a pattern. I have tried various combos of :ns-patterns in this config but in all cases no tests are run. any pointers please?

2023-07-14T10:43:29.841409Z

I created a post-load hook to do the filtering: https://gist.github.com/henryw374/6ba4359f540412baae4510d790fcf273

2023-07-14T10:43:47.933819Z

if there's a better way please let me know

plexus 2023-07-14T11:44:01.778169Z

I'm not sure ns-patterns is supported by kaocha-cljs2, it's a completely different loading path.

2023-07-14T11:56:31.284389Z

ok no worries, the hook is working fine for now