Skip to content

Commit

Permalink
Reload tests in interactive mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Jan 13, 2011
1 parent 479c267 commit 1de07c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/leiningen/repl.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion src/leiningen/test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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))]
Expand Down

0 comments on commit 1de07c9

Please sign in to comment.