marick/lein-midje

autotest does not rerun "used" tests

Closed this issue · 1 comments

We have tests in an "external" project that we include as a depency, like so:

(ns external-test-ns
  (:use ns-under-test)
  (:use midje.sweet))

(fact "addition" (+ 2 2) => 4)
(ns internal-test-ns
  (:use external-test-ns))

Running lein midje :autotest runs all the tests on the first go, but not after modifications to to definitions in ns-under-test.

I would need more information to debug this. One thing that can cause this is if the namespace of the changed file has been broken. The library that Midje uses doesn't fail obviously in that case. Running lein midje alone will show the failure.