On Thu, Jan 6, 2011 at 12:07 PM, ubolonton <ubolon
...@gmail.com> wrote:
> Does the "test" command in interactive mode pick up the latest changes
> in source?
It looks like this is a Leiningen bug; the tests do not get reloaded
in interactive mode.
Here's a workaround; you can paste this in project.clj or in your own
hook file until the fix is released:
(require 'robert.hooke 'leiningen.test)
(robert.hooke/add-hook #'leiningen.test/form-for-testing-namespaces
(fn [f namespaces & args]
`(do (doseq [n# '~namespaces] (require n# :reload))
~(apply f namespaces args))))
If you need code to be reloaded from src/ then you'll need to put
:reload in the appropriate require/use clauses in your test ns forms.
thanks for reporting,
Phil