Skip to content

Commit

Permalink
Have load-facts return count of errors (for lein-midje)
Browse files Browse the repository at this point in the history
  • Loading branch information
marick committed Dec 31, 2012
1 parent e4eb309 commit 08d0c0d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/midje/repl.clj
Expand Up @@ -9,6 +9,8 @@
[midje.clojure-test-facade :as ctf]
[midje.ideas.facts :as fact]
[midje.ideas.reporting.levels :as levelly]
;; This is so gross. The reporting stuff needs to be fixed.
[midje.ideas.reporting.string-format :as string-format]
[midje.ideas.metadata :as metadata]
[midje.internal-ideas.compendium :as compendium]
[midje.internal-ideas.project-state :as project-state]
Expand Down Expand Up @@ -204,8 +206,8 @@
;; come from the last-loaded namespace.
(levelly/report-changed-namespace ns)
(require ns :reload))
(levelly/report-summary (ctf/run-clojure-test namespaces)))
nil))
(levelly/report-summary (ctf/run-clojure-test namespaces))
(string-format/previous-failure-count))))
"Load given namespaces, as in:
(load-facts 'midje.t-sweet 'midje.t-repl)
Expand Down

0 comments on commit 08d0c0d

Please sign in to comment.