Fix count of test errors and failures

Closes #208.
This commit is contained in:
Roger Gilliar 2015-05-17 15:53:21 +02:00 committed by Tim Pope
parent 1646a01b0b
commit 13a21bff0f

View File

@ -1467,6 +1467,7 @@ function! fireplace#capture_test_run(expr, ...) abort
\ . ' (:fail :error)' \ . ' (:fail :error)'
\ . ' (let [{file :file line :line test :name} (meta (last clojure.test/*testing-vars*))]' \ . ' (let [{file :file line :line test :name} (meta (last clojure.test/*testing-vars*))]'
\ . ' (clojure.test/with-test-out' \ . ' (clojure.test/with-test-out'
\ . ' (clojure.test/inc-report-counter (:type m))'
\ . ' (println (clojure.string/join "\t" [file line (name (:type m)) test]))' \ . ' (println (clojure.string/join "\t" [file line (name (:type m)) test]))'
\ . ' (when (seq clojure.test/*testing-contexts*) (println (clojure.test/testing-contexts-str)))' \ . ' (when (seq clojure.test/*testing-contexts*) (println (clojure.test/testing-contexts-str)))'
\ . ' (when-let [message (:message m)] (println message))' \ . ' (when-let [message (:message m)] (println message))'