Hi Stefan,
Sorry I've not replied sooner - I just spent a few minutes looking at
your demo code and now remember what the problem is. It's been reported
before but I'm not sure the best way of handling it.
The "problem" is that you're not _actually_ running midge tests as part
of "mvn test" but rather they're being "evaled" during the "mvn
testCompile" phase.
Because Clojure is inherently a REPL/Reader based language there isn't
really the notion of a strictly "compile" phase - the only different
between "compile" and "run" is that compile outputs the JVM .class files
to disk.
When you write "(fact....)" in midge, you're not declaring a fact to run
at a later time as one does with "(deftest...)" but rather you're
evaluating the fact immediately during the "compilation", my guess is
that because midge has no separate run step, its not triggering any form
of VM termination/failure.
One solution I've seen people do in the past is wrap their (fact...)
expressions INSIDE a (deftest...) - but that's rather unpleasant.
If anyone can offer a good solution to this I'm open-ears cause I'm
kinda stumped for a decent solution...
Mark