Midje
Midje copied to clipboard
Midje provides a migration path from clojure.test to a more flexible, readable, abstract, and gracious style of testing
Basically this would allow tools like `cider-test` to run midje tests, which would benefit a lot of Clojure developers. More details - https://github.com/clojure-emacs/cider#using-cider-test-with-alternative-test-libraries and https://github.com/clojure-emacs/cider/issues/1606
We've had a few test failures recently that have resulted in exception traces, but none of the usual Midje failure messages. That makes it a bit hard to know which...
I created a cyclic dependency, and wondered why the tests didn't run; so I restarted lein and only got this message from midje: ``` user=> (autotest) Because failures in the...
As described in https://github.com/marick/Midje/wiki/Describing-one-checkable%27s-prerequisites, in the case of a failure non equal arguments the, following will print: ``` FAIL at (NO_SOURCE_FILE:4) You never said #'g would be called with these...
Would it be possible to extend `anything` support so it can be used in maps nested within a sequence? We often have to check a function that returns a sequence...
The functions in against-background around :contents are evaluated even when you filter out the tests when autotesting. ``` (fact-group :integration (against-background [(around :contents (let [] (println "Loading content wrapping functions.")...
Right now, a background prerequisite always is implicitly tagged with `:times (range 0)`. If a user explicitly specifies a `:times`, that should be obeyed.
see following case ``` (defn simple-walk "does nothing" [m] (clojure.walk/postwalk (fn [x] x) m)) (facts "about `simple-walk`" (fact "with simple map, returns the map" (simple-walk {:this "works"}) => {:this "works"})...
```clojure (change-defaults :fact-filter (complement :slow)) ``` in `.midje.clj` works when calling `load-facts` or running tests through lein-midje. The test ignores `:slow` facts as expected. However, creation-time checking when loading a...
I've somehow (over almost two years) introduced something slow in one of my fact files. It's not trivial to find it manually, and I'm wondering if there's a way I...