Re: [ANN] A guide to setup test driven workflow for Clojure

2014-10-22 Thread tao.zhou2009
(defun cider-repl-command (cmd) "Execute commands on the cider repl" (cider-switch-to-repl-buffer) (goto-char (point-max)) (insert cmd) (cider-repl-return) (cider-switch-to-last-clojure-buffer)) (defun cider-repl-reset () "Assumes reloaded + tools.namespace is used to reload everything" (intera

Re: [ANN] A guide to setup test driven workflow for Clojure

2014-10-01 Thread tao.zhou2009
Thanks for James Reeves’s great project: https://github.com/weavejester/ns-tracker -- tao.zhou2009 Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Tuesday, September 30, 2014 at 5:13 AM, suvash wrote: > ns-tracker seems to be pretty neat too. Thanks for letting me know. > > On Mo

Re: [ANN] A guide to setup test driven workflow for Clojure

2014-09-29 Thread suvash
ns-tracker seems to be pretty neat too. Thanks for letting me know. On Monday, September 29, 2014 3:57:20 AM UTC+2, Tao Zhou wrote: > > just use: https://github.com/weavejester/ns-tracker, > > (ns xxx.repl) > > (def modified-namespaces (ns-tracker ["src" "test"])) > > (defn reload [] > (doseq [n

Re: [ANN] A guide to setup test driven workflow for Clojure

2014-09-28 Thread tao.zhou2009
just use: https://github.com/weavejester/ns-tracker, (ns xxx.repl) (def modified-namespaces (ns-tracker ["src" "test"])) (defn reload [] (doseq [ns-sym (modified-namespaces)] (require ns-sym :reload))) and in project.clj :repl-options {:init-ns xxx.repl} when modified files, just (re

Re: [ANN] A guide to setup test driven workflow for Clojure

2014-09-28 Thread Colin Williams
This seems cool, my approach isn't nearly as sophisticated and much more editor dependent. I've using prelude, which include projectile, which binds C-c p P to projectile-test-project. There were a couple customizations I had to make to get it really streamlined, though. The command shows up