Hello,
We are using midje with cider's `clj-refactor` mode. We also use the
We have noticed that both clj-refactor and the reloaded.repl causes
all of the midje facts to be run when a namespace is recompiled or
reloaded. With clj-refactor this seems to happen with the repl is
started and with reloaded.repl this seems to happen on every `reset`. Since
we have a couple of thousand facts this can take quite a
while. It seems that it also causes the cider repl to crash, but
maybe that is my setup. Anyway, we would like a way to prevent the
facts to be run when the namespace is loaded or re compiled.
I have looked into wrapping all of our facts with in a `deftest`, but
this seems less than an ideal solution. For one, error reporting in
midje seems to lose the line number form the error assertion when using `deftest`.
You can see an example of this here,
I believe this is a result of an interaction between midje and
`deftest` as this worked correctly before wrapping our facts in a
deftest.
Anyway we have really enjoyed using midje and would like to keep using it.
Does anyone have any suggestions on how to prevent midje facts from
being auto run while not using deftest?
Thank you