Fork me on GitHub

Using lein-test-refresh, I've noticed that I can change code and it reloads the correct namespace, but the function I changed doesn't actually get updated. I can comment out the whole fn body and it reloads the correct ns and re-runs the tests which actually still use the old fn body. However, I've verified the code is being compiled, since I can introduce compilation errors and lein-test-refresh outputs the errors. So, why would it be compiling the code but not replacing my fn vars? Has anyone seen this before and does anyone have tips to fix it?


I guess it's the same as running tests in the REPL. If you just comment out test definition the old version from previous evaluation is still there. You would have to remove-ns first.


In some DMs it seems like the problem was something else. test-refresh handles this otherwise it would be useless