I'd like to execute my Clojure tests directly from eclipse (alternative would be to run lein test
from the commandline).
I already installed the CounterClockwise-Plugin for Eclipse, but there is no "Run as / Clojure test" in the context-menu. So far I added a (run-tests)
to the end of my Clojure-tests files and execute the test via "Run as / Clojure Application".
Is there a better way to run tests from eclipse? In general it shouldn't be necessary to add code to start the tests.
您可以在Eclipse中打开项目REPL,将REPL移至测试名称空间,然后从那里进行(run-tests)
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.