David Pollak <
feeder.of...@gmail.com> writes:
Hi David,
> * Is there a faster cycle than to change code, change tests and type
> "lein test" to see the results?
Obviously, you can run the tests from the already running REPL. FWIW,
when I change something in using Emacs/nrepl.el/clojure-mode in a
namespace, I do
C-c C-k ;; recompile the namespace
C-c C-t ;; switch to the corresponding test namespace (I think the
;; original key binding is `C-c t'.)
;; maybe adapt the tests if needed, and if so
C-c C-k ;; recompile the test namespace
C-c M-n ;; switch the REPL to the test namespace
;; switch to the *nrepl* buffer
(run-all-tests)
The latter can also be called with a key binding and nicer output
highlighting using clojure-test-mode, but I haven't given it a try, yet.
> * Is there a way to keep everything in a hot JVM (I've done a little
> research on Nailgun... but it seems to be out of vogue) so there's no
> JVM start-up penalty?
There's drip (
https://github.com/flatland/drip) which will always keep a
fresh JVM in the background.
> * Is there a reason for the huge disparity between my MacBook Pro and
> my desktop box?
Yes, most definitively. Unfortunately, I don't know it. ;-)
Bye,
Tassilo