Reload the namespaces and run the tests again. Uses
:reload flag, not :reload-all to avoid odd loops. If
that doesn't work for you, explicitly reload things.
(defn re-test
"Reload the namespaces and run the tests again. Uses
:reload flag, not :reload-all to avoid odd loops. If
that doesn't work for you, explicitly reload things."
([]
(try
(re-test (test-namespaces))
(catch Throwable e
(println (reload-exception-message e)))))
([namespaces]
(try
(doseq [n namespaces]
(load-source-and-test-namespace n))
(apply run-tests (tests namespaces))
(catch Throwable e
(println (reload-exception-message e))))
nil))
Comments top
No comments for re-test. Log in to add a comment.