If you want to automate any "lein X" process then lein auto is the thing to 
use. However, there are a few runners which will monitor changes and then 
run the tests whilst maintaining a lein process so they are really quick.

I personally use https://github.com/jakepearson/quickie, just start "lein 
quickie" in a console and everytime I change something it runs 
(all|related?) tests.

In terms of when the process must be restarted, a non-exhaustive list I've 
found is:
 - changing anything in project.clj
 - changing existing defmulti signatures

Hope that helps.

On Thursday, 8 January 2015 11:32:44 UTC, Andrea Crotti wrote:
>
> Hi guys, 
>
> I'm starting to use Clojure a bit more seriously, I knew already Lisp a 
> bit and Haskell, in plus I've been using Emacs for a long time so 
> luckily it's not as hard, and it's a lot of fun. 
>
> I'm using Emacs + Cider for development and it works wonderfully, 
> however I have a few problems/questions trying to do TDD. 
>
> 1. Isn't it possible to make Lein more verbose? 
>
>    It's often quite slow and it would be nice to know what is going 
>    on, I can stand the slowness but at least tell me something :D 
>
> 2. When is exactly that I need to run again "lein test" (which is 
>    painfully slow) and when just rerunning the tests from the same REPL 
>    suffice? 
>
>    I thought only when changing dependencies, but I had different 
>    experiences so I'm not too sure about the rule. 
>
>    And what command exactly is Cider triggering when I run the tests? 
>    It would be nice to be able to see somewhere more information like: 
>    - compiling file x 
>    - running tests for y with command z 
>
>  3. Does incremental compilation work well/make sense for Clojure? 
>     I found something but the fact that it's not done straight away in 
>     Leiningen makes me think it's maybe not much used? 
>
> Thanks a lot, and congratulations to all the developers for the great 
> language! 
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to