       (print ansi-reset))))
 
 (defmethod report :error [m]
+  (add-failed-test!)
+
   (try
     (print ansi-red)
     (with-test-out


    (finally
      (print ansi-reset))))

; Prettify test reports
(ns unit.reporter
  (:require
    [clojure.test :refer [report with-test-out inc-report-counter *testing-contexts* *testing-vars*
                          testing-contexts-str testing-vars-str *stack-trace-depth*]]
    [clojure.stacktrace :as stack]))

; Change the report multimethod to ignore namespaces that don't contain any tests.
