Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

139 lines (118 sloc) 5.212 kB
= 1.1
* Can defer individual checks in a fact with the =future=>
* Negating arrows in facts (=not=>)
* Folded prerequisites are much more competent
* Some improvement in error reporting.
* The #'roughly checker can be used for inexact numerical
* #'irrelevant is a synonym for #anything
* Line numbers are better reported for failures of very
stripped-down forms (like (fact 1 => odd?)
* A prerequisite like (f 1) =streams=> [1 2 3] produces
the next value each time it's called.
* Issue warning when bare function is used in a
prerequisite. Behavior will change in 1.2.
* Several ways to make checkers that can be used in
= 1.0.1 (stable)
* Ben Mabey fix: eagerly preserve record types
* Extended-= and collection checkers have semantics for
mixing maps and records.
= 1.0.0
* Allow, where unambiguous, collection checkers to have multiple element arguments:
(f) => (just 1 2 3 ) ; same as..
(f) => (just [1 2 3])
* Unexpected exceptions are displayed with a trimmed stack trace
FAIL at (t_collection.clj:427)
Expected: 33
Actual: java.lang.Error: Oops!
* `lein midje` runs clojure.test deftests and integrates the results into the summary.
* `cake midje` does the same for Cake users.
= 0.9.0
* Regexps can be placed on the right-hand-side of an
expression: "foo" => #"fo+"
* Throws and other checkers are "checker-aware", so
you can write: (f) => (throws Error (contains #"part of a message"))
* Containment checkers
= 0.8.1 (stable)
* before/after/around
* background facts work within deftests
* future-fact, pending-fact
= 0.8.0
* Dropping support for Clojure 1.1.
* Incompatible syntax change for #'against-background
* Backgrounds can now be set for a namespace or within a
#'fact body.
* Background-setting functions obey *include-midje-checks*
* Compiling out test code from production code actually
= 0.7.2
* Use alter-var-root instead of with-binding in preparation
for Clojure 1.3 (and use with threads).
* against-background
= 0.7.1
* Three new checkers: map-containing, maps-containing, and
* Chatty checkers are much improved.
* Some bug fixes
= 0.7.0
* Chatty checkers
* Added a leiningen plugin to get tidy test reports.
* Set midje.semi-sweet/*include-midje-checks* to false to
compile tests out of production code.
* Incompatible change: Midje no longer defines fakes for
you at the top level. As with any other identifier used in
code, they must be defined before use. The unfinished macro
is good for that.
* Functions print as their names, if they have them, in case
of an (exactly x) failure.
* Does a better job forcing seqs in the result to fully calculate
* Emacs midje-mode is a little smarter about what a Clojure
identifier is (for M-x midje-unfinished)
= 0.6.1
* Midje-mode is (more) compatible with clojure-test-mode.
= 0.6.0
* Can "unfold" nested function calls in provided facts, so
that (f (g 1)) produces two mock calls, the first of which
returns a metaconstant that the second expects.
* If a fact fails for more than one reason, report them all.
* midje-mode.el provides a smooth workflow for those
who use slime/swank.
= 0.5.0
* Line numbers almost always point to the line that provoked
the error (one of the lines with => on them).
* The in-any-order checker should work correctly.
* Expectations (x => y) can appear at any level, so they can
be nested within lets.
= 0.4.0
* midje.sweet in workable shape.
* (not-called f) expectation added (Wilkes Joiner)
* key&value arguments can be passed to expect(), fake(), and
not-called() to override defaults.
* (fact) and (expect) return boolean variables because
that's more informative in REPL.
* The checker for (f) => (throws Throwable) is supported.
= 0.3.0
* Works with 1.2-RC1 (Wilkes Joiner)
= 0.2.0
* Can fake functions from other namespaces. (Wilkes Joiner)
Jump to Line
Something went wrong with that request. Please try again.