Tensegritics / ClojureDart

Clojure dialect for Flutter and Dart
1.44k stars 91 forks source link

Hot testing #241

Open valerauko opened 1 year ago

valerauko commented 1 year ago

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.