문제

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?

도움이 되었습니까?

해결책 2

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

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top