Skip to content
marick edited this page Dec 22, 2010 · 23 revisions

0.9

  • Regexps can be usefully placed on the right-hand-side of an expectation:

      (f) => #"a+"
    
  • Checkers for collection-like structures, as in: [3 2 1] => (contains [1]) #{1 2 3} => (contains 1) "abc" => (contains #"bc")

  • throws and other checkers become "checker-aware", so that you can say: (f) => (throws Error (contains #"part of a message"))

0.10.0

  • Caught exceptions contain some guess about where they came from, rather than just {"this Throwable was captured by midje:" #<Error java.lang.Error: If {:a 1} is a map, [{:a 1}] should be too.>}

  • lein midje runs clojure.test deftests and integrates the results into the summary.

  • cake midje

1.0

  • Some notation that eliminates this:

       ( (checker arg) (value-generator)) => falsey
    

    I'm leaning toward

      (value-generator) =deny=> (checker arg)
    
Clone this wiki locally