Reload tests in interactive mode.
This commit is contained in:
parent
479c2671ba
commit
1de07c9e45
2 changed files with 2 additions and 1 deletions
|
@ -102,6 +102,7 @@ on a socket based on the :repl-port key in project.clj or chosen randomly.
|
|||
Running outside a project directory will start a standalone repl session."
|
||||
([] (repl {}))
|
||||
([project]
|
||||
;; TODO: don't start socket server until deps
|
||||
(let [[port host] (repl-socket-on project)
|
||||
server-form (apply repl-server project host port
|
||||
(:repl-options project))
|
||||
|
|
|
@ -24,7 +24,7 @@ each namespace and print an overall summary."
|
|||
([namespaces result-file & [selectors]]
|
||||
`(do
|
||||
(doseq [n# '~namespaces]
|
||||
(require n#))
|
||||
(require n# :reload))
|
||||
~(form-for-hook-selectors selectors)
|
||||
(let [summary# (binding [clojure.test/*test-out* *out*]
|
||||
(apply ~'clojure.test/run-tests '~namespaces))]
|
||||
|
|
Loading…
Reference in a new issue