In Clojure, I have decided to move from writing :test
metadata elements to using deftest
. To see that I have written the deftest
correctly, I try reloading and running the tests with a reload in the REPL.
While I don't care about duplicate tests per se, when I remove a test from the source, I would like it removed when I reload the source. Clearing the REPL doesn't remove the tests.
So, How many I remove tests defined via deftest
from the Clojure REPL
clojure.test finds test vars by reflecting on namespaces, so you can use ns-unmap. For full details, see my earlier answer to a similar question