Re: testing platform , midje or specjl ?

2014-11-15 Thread Steve Ford
Hi Colin

I'm a beginner, and I started with midje.  But I was very interested to 
read your thoughts about clojure.test being more opinionated.  Since I'm 
still learning, I suspect I would benefit from clojure.test's encouragement 
to be more idiomatic.

However, one thing I absolutely love is midje's autotest.  I love writing 
out my editor and having the tests run immediately in another window.  No 
more bugs of the form, "Oh, this is just a simple, obvious change; no need 
to re-run tests."

Is there anything like that which could be done with clojure.test?

Thanks!
Steve

-- 
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.


Clojure REPL startup code

2014-09-15 Thread Steve Ford
I have some nice debug tools that I want automatically read in when I start 
a REPL (I most-often use cider in emacs).  I sort-of managed it with the 
following "~/.lein/profiles.clj" file:

{:user {:plugins [[lein-midje "3.1.3"]]

:dependencies [[org.clojure/tools.trace "0.7.8"]]

:source-paths ["/Users/sford/.clj"]}}


Under "/users/sford/.clj" I have a "user.clj" file which contains the tools 
I want read in.


This works if I start the repl from a directory which has a "project.clj" 
file.  But if I'm in a directory without that file, I guess lein thinks 
that I don't have a project and don't want it to do its magic.  I don't 
want this to be dependent on being in a lein project.  (I know ... then why 
use lein?  Because I want to use emacs/cider, and it uses the lein repl.  I 
think.  I'm kinda new to all this...


Is there a different way to auto-load the tools?  Maybe something not 
specific to lein?


Steve


-- 
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.


"lein midje :autotest" problem - fast re-init?

2014-09-28 Thread Steve Ford
I've really been enjoying using "lein midje :autotest" to run my tests
every time I do an editor save.  However, I introduced a bug in my code
which it didn't detect.

I re-arranged some code and accidentally moved a function reference above
the point where the function is defined.  When I saved, the automatic
re-load of the file did not generate an unresolved symbol error because the
function was already defined from the previously saved version.  It wasn't
until I killed lein and restarted it that the load of the file generated
the "Unable to resolve symbol" error.

Any suggestions besides killing and restarting "lein midje :autotest" from
time to time?  (To be avoided given the long delay starting it.)

Thanks.
Steve

-- 
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.