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 thoroughly looked through the docs, so this is at the very least missing documentation. I'm trying to achieve e.g. ```clojure (fact (fizz-or-buzz? ..n..) => true (provided (either (fizz? ..n..)...
I am following MOOC course, Functional programming in Clojure (http://iloveponies.github.io/120-hour-epic-sax-marathon/index.html) I am mostly happy, but on issue of midje keeps bugging me. The output always contains phunky color code which...
Hi! I found the following issue. We can observe that Midje emits delicate-looking var names: ```clj matcher-combinators.core-test> (tabular (fact "Foo") ?matcher prefix embeds) ;; the whole thing below is a...
I couldn't find a way to use prerequisites for functions with type hinted vars. The root cause is related to how type hint works and it comes down to some...
I'd like to be able to define prerequisite with a dynamic argument and access this argument in the mocking value. For instance, I'd like to be able to write something...
When evaluating a prerequisite that expects a certain lazy sequence Midje correctly fails when the lazy sequence does not match the expectation but does not return what the lazy sequence...
``` (ns feng.fengtest (:require [midje.sweet :refer :all]) ) (fact "one乱码s?>" :one :feng => :fen (+ 3 2) => 321 ) ``` ``` Loading (feng.fengtest) FAIL one乱码s?> at (fengtest.clj:5) Expected: [1;33m:fen[0m...
If a test code calls code that throws an exception but the exception is not expected in the test (so it's a situation that should not happen), Midje does not...
This https://gist.github.com/jaffee/10488707 has a minimal reproduction of the problem. If you take the :aot out of project.clj, things work as expected, with it in there `lein repl` gives a huge...
how do you use Midje on clojurescript? can i use it..?