Question

I'm a newbie with Clojure and Counterclockwise and I succeeded adding a Leiningen 2 project with "Poor man's integration" (External tools, linked from question Using Clojure and Leiningen with IDEs).

My alternatives for running tests so far:

  • From command line : lein test
  • Running "lein test" with "Poor man's integration" (External tool)

These work pretty fine but I'm wondering whether there's some smoother alternative, for example showing the tests run like with JUnit etc?

Or with more general formulation, how to have fluent TDD flow with Counterclockwise?

Was it helpful?

Solution 2

Midje with autotest in REPL seems to be worth checking out.

OTHER TIPS

Another alternative I found (with clojure.test API) was loading the test file in REPL (Alt+Cmd+S) and calling run-tests:

(run-tests)

With some trying, I can re-run the tests with my modifications by loading the modified file to REPL and calling run-tests again. (Works but isn't probably the final solution)

One way to do this is to use cljunit as an interface between the JUNit runner in Eclipse and your Clojure tests.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top