We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51997d1 commit 3b3da5bCopy full SHA for 3b3da5b
clojure/io/julienvincent/clojure_test/runner.clj
@@ -23,8 +23,12 @@
23
24
(defn run-test [test-sym]
25
(binding [*report* (atom [])]
26
- (with-redefs [test/report
27
- (fn [report]
28
- (swap! *report* conj (parse-report report)))]
29
- (test/run-test-var (resolve test-sym)))
+ (with-redefs [test/report (fn [report]
+ (swap! *report*
+ conj
+ (parse-report report)))]
30
+ (try (test/run-test-var (resolve test-sym))
31
+ (catch Exception ex
32
+ (swap! *report* conj {:type :error
33
+ :exceptions (serialization/analyze-exception ex)}))))
34
@*report*))
0 commit comments