Working with Clojure's Kaocha or the shadow-cljs test runner, it's very convenient that I can have it "watch" tests.
My image of how it works: when a source file (namespace) is changed, it finds all tests that use any of the namespaces that require the changed namespace, and run all the tests involved on every change.
I don't know how they deal with the case when a file is saved so quickly in succession that tests don't have time to run to completion. Possibly interrupt the previous execution?
Working with Clojure's Kaocha or the shadow-cljs test runner, it's very convenient that I can have it "watch" tests.
My image of how it works: when a source file (namespace) is changed, it finds all tests that use any of the namespaces that require the changed namespace, and run all the tests involved on every change.
I don't know how they deal with the case when a file is saved so quickly in succession that tests don't have time to run to completion. Possibly interrupt the previous execution?
Ref.
:tests
) for testing and then you canshadow-cljs watch tests
that (relevant config docs)