Skip to content
marick edited this page Oct 23, 2012 · 27 revisions

Loading files containing Midje facts, or using lein test, doesn't produce useful overall summaries. To get summaries, use the Leiningen Lein-Midje plugin plugin.

Its summaries look like this:

$ lein midje
...
FAILURE: 2 facts were not confirmed. 

If, as I do, you like using facts as annotations in your source code, you'll be happy to know that lein midje also checks any facts in the src directory.

If your tests also contain clojure.test deftests, they'll be run, you'll get detailed failure information, and the end of the output will show the usual clojure.test summary. It'll be separate from the Midje summary because Midje doesn't make the same distinctions as clojure.test does (between errors and failures and between checks and tests).

See the lein-midje documentation for more, such as how to use lein-midje to monitor changing tests (autotest).

Clone this wiki locally