简体   繁体   English

`lein test` / `clojure.test` 是否有详细/彩色模式?

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

The default output from clojure.test via lein test is pretty underwhelming:来自clojure.test通过lein test的默认 output 相当平庸:

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.我想也许 Clojure 人们是极简主义者,但在我使用过的所有其他语言中,测试运行者使用红色/绿色 colors 来表示测试失败/通过,并且通常带有详细模式,我可以使用它来查看正在运行的每个测试.

It looks like possibly I can do this through the do-report method in clojure.test .看起来我可以通过clojure.test中的do-report方法来做到这一点。 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. kaochaeftest都可以与lein test一起使用,并产生五颜六色的测试 output。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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