人道测试输出似乎不适用于 ClojureScript 的 lein doo 命令

humane-test-output doesn't seem to work with ClojureScript's lein doo command

lein doo node testhumane-test-output 一起工作真是太棒了。

按照自述文件中的建议修改我的 ~/.lein/profiles.clj 无效。

我一直从 ClojureScript 的失败测试中得到相同的(相对不友好的)默认输出。

要使 lein doohumane-test-output 协同工作,最低配置要求是多少?

两个步骤让这个对我有用:

首先:在我的 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)

在那之后,我的失败测试得到了很好的、人性化的测试输出。