简体   繁体   中英

Is there a verbose/colored mode for `lein test` / `clojure.test`?

The default output from clojure.test via lein test is pretty underwhelming:

Ran 1 tests containing 1 assertions.
0 failures, 0 errors.

I guess maybe Clojure people are minimalists, but in every other language I've used test runners use red/green colors to indicate failing/passing tests at a glance, and generally come with a verbose mode I can use to see each test being run.

It looks like possibly I can do this through the do-report method in clojure.test . But is there a plugin or option or something that does this already?

kaocha and eftest can both be used with lein test and produce colourful test output.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM