CPU is cheap these days, why not do both?
I tests within CIDER when I want to. But I normally run lein test on
every file change (using a inotify script, but there's probably a nicer
way). This crashes a lot, for instance, when I save a half finished
change, but it also tells me when I have messed up what I think is a
trivial change.
Obviously, I don't do this on laptops running on batteries. But on a
desktop with multi-core and a second screen, it's helpful.
Udayakumar Rayala <
uday....@gmail.com> writes:
> Not sure if you are doing this, you can run the tests in cider itself. This
> is much quicker than running "lein test" outside particularly when you are
> doing TDD.
>
> I use clojure.test so every deftest method is a function which you can run
> to see if the test passes or fails. Or you can run run-tests
> <
https://clojuredocs.org/clojure.test/run-tests> for running all or tests
--
Phillip Lord, Phone:
+44 (0) 191 208 7827
Lecturer in Bioinformatics, Email:
philli...@newcastle.ac.uk
School of Computing Science,
http://homepages.cs.ncl.ac.uk/phillip.lord
Room 914 Claremont Tower, skype: russet_apples
Newcastle University, twitter: phillord
NE1 7RU