Midje
Midje copied to clipboard
Midje provides a migration path from clojure.test to a more flexible, readable, abstract, and gracious style of testing
I'd like to test a sequence of maps against a schema I've defined using Prismatic schema. I get nice detailed error output from [vice](https://github.com/savagematt/vice) if I say something like: ```...
Running midje-tests in jenkins, getting `XML document structures must start and end within the same entity. Nested exception: XML document structures must start and end within the same entity.` from...
I find myself scrolling up the repl to the first failure after a test run all the time. Is it just me?
My use case: I wrote a function, left unfinished during a previous working session. Now I want to start working again and I launch `midje.repl/autotest`. What I see is: ```...
Yes there's: https://github.com/marick/Midje/wiki/Production-mode But there is not all the informations that we need to deactivate Midje: > To prevent Midje facts and expects from being compiled into your code, set...
Occasionally the function under test has a bug that causes an infinite loop, for example: ``` clojure (fact (repeatedly gensym) => nil) ``` The only way I've found to stop...
As the half-asleep coder that I am, I wrote ``` clojure (#'teamwall.handler.get-user-for-token ...token...) => {:user ...user...} ``` where it should be ``` clojure (#'teamwall.handler/get-user-for-token ...token...) => {:user ...user...} ``` Midje...
It appears that a specific configuration of `facts`, `let` and argument type hints causes hints to be ignored in Midje. Here I have 5 different variations on a function, and...
The current documentation doesn't make it clear that this is legal: ``` clojure (facts (let [test-users (make-users-with-ids 1 2 3)] (setup test-users) ;; Wow, I can call a setup method...
There doesn't seem to be any way to do: ``` (ns test (:require [ns-under-test :as t])) (expose-testables ns-under-test) (fact "..." (t/private-method ...)) ``` expose-testables works for methods using (:use) or...