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

时间:2017-06-10 16:49:19

标签: clojurescript

我有一段时间让lein doo node testhumane-test-output合作。

按照自述文件中的建议修改我的~/.lein/profiles.clj不起作用。

我只是继续从ClojureScript的失败测试中获得相同(相对不友好)的默认输出。

lein doohumane-test-output一起工作所需的最低配置是什么?

1 个答案:

答案 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)

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