From aa334e7a8edcb7d1d06692a06b73b6575b41844d Mon Sep 17 00:00:00 2001 From: Kevin Downey Date: Thu, 9 Mar 2017 11:04:28 -0800 Subject: [PATCH] insert a flush at the end of do-report for whatever reason report output doesn't completely print until something else forces a flush, so you never get a complete report if, for example, something in the test hangs --- src/adzerk/boot_test.clj | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/adzerk/boot_test.clj b/src/adzerk/boot_test.clj index 51451e3..4ee3cee 100644 --- a/src/adzerk/boot_test.clj +++ b/src/adzerk/boot_test.clj @@ -20,6 +20,9 @@ '[clojure.tools.namespace.find :refer [find-namespaces-in-dir]]) (activate!) + ;; flush report output as it happens + (alter-var-root #'t/do-report (fn [fun] (fn [& args] (let [result (apply fun args)] (flush) result)))) + (defn all-ns* [& dirs] (distinct (mapcat #(find-namespaces-in-dir (io/file %)) dirs)))