我有一段时间让lein doo node test
与humane-test-output
合作。
按照自述文件中的建议修改我的~/.lein/profiles.clj
不起作用。
我只是继续从ClojureScript的失败测试中获得相同(相对不友好)的默认输出。
让lein doo
和humane-test-output
一起工作所需的最低配置是什么?
答案 0 :(得分:1)
这两个步骤对我有用:
首先:在我的project.clj
中,我添加了这一行:
:profiles {:dev {:dependencies [[pjstadig/humane-test-output "0.8.2"]]}}
第二:我的测试运行器cljs
文件如下所示:
(ns cljs-router.runner
(:require [doo.runner :refer-macros [doo-tests]]
[pjstadig.humane-test-output] ; This is the key right here
[cljs-router.core-test]))
(doo-tests 'cljs-router.core-test)
在那之后,我为失败的测试得到了很好的,人性化的测试输出。