9

I was wondering what autotest tools exists for clojure. In Ruby I have ZenTest, redgreeen etc to continuously keep on testing my code. I would like to have something similar for Clojure

So far I have found this simple script https://github.com/devn/clojure-autotest on the github. A bit crude for my taste. All tests run when a change occurrs. Also it may blurt out a long stacktrace in case of syntax errors, obscuring what goes wrong.

zetafish
  • 2,342
  • 4
  • 18
  • 19

2 Answers2

6

Take a look at the Testing section on the Leiningen plugin page.

Notably there's lein-autotest for Stuart Sierras lazytest framework and speclj.

Christian Berg
  • 14,246
  • 9
  • 39
  • 44
2

If you are using clojure.test there are a few options available. lein-test-refresh is what I use (I'm also the author). Other options include quickie and prism.

If you use expectations then there is lein-autoexpect. I'm also the author of that.

Midje has built in support for autotesting. I'm not sure what the options are for Speclj.

Jake McCrary
  • 1,180
  • 9
  • 8