Leiningen plugin to reload namespaces in modified files
[lein-reload "1.0.0"] to your
Start an interactive leiningen session
test your code inside the leiningen shell
code to make it work, then reload and re-test
lein> reload lein> test
reload will be fast, since it will only reload the files you modified since last time.
If you want to automatically get a reload every time you test, you can add a hook
Then in the leiningen shell, modified files will be reloaded every time you call test, test! or retest, you don't need to call reload explicitly:
lein> test lein> retest
The code that detects changed files is a direct rip-off of https://github.com/weavejester/ring-reload-modified
Copyright (C) 2011 Sebastián B. Galkin
Distributed under the Eclipse Public License, the same as Clojure.