marick / lein-midje

Leiningen plugin for Midje
MIT License
78 stars 29 forks source link

autotest does not rerun "used" tests #48

Closed rahcola closed 9 years ago

rahcola commented 10 years ago

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.

marick commented 9 years ago

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.