lein-doo没有运行测试,发生了什么?

时间:2017-03-22 07:07:12

标签: clojurescript

当我尝试使用lein-doo运行测试时,我收到此错误:

ERROR: doo was not loaded from the compiled script.

Make sure you start your tests using doo-tests or doo-all-tests
and that you include that file in your build

我的project.clj看起来像这样:

(defproject tech.dashman/clientcommon "0.1.0-SNAPSHOT"
  :description "Dashman - Common library to all clients"
  :url "https://dashman.tech"

  :min-lein-version "2.3.4"

  :source-paths ["src"]

  :cljsbuild {:builds {:test {:source-paths ["src" "test"]
                              :compiler     {:output-to  "target/test/clientcommon.js"
                                             :output-dir "target/test"
                                             :target     :nodejs
                                             :main       clientcommon.test-runner}}}}

  :doo {:build "test"
        :debug true}                                        ; Run tests: lein doo phantom

  :dependencies [[org.clojure/clojure "1.8.0" :scope "provided"]
                 [org.clojure/clojurescript "1.9.229" :scope "provided"]
                 [com.taoensso/sente "1.11.0"]
                 [mount "0.1.10"]
                 [prismatic/schema "1.1.3"]
                 [cljsjs/react-with-addons "15.2.1-0"]
                 [reagent "0.6.0" :exclusions [cljsjs/react]]
                 [re-frame "0.8.0"]
                 [tech.dashman/reagent-toolbox "0.1.0-SNAPSHOT"]
                 [doo "0.1.7"]]

  :plugins [[s3-wagon-private "1.3.0"]
            [lein-cljsbuild "1.1.4"]
            [lein-doo "0.1.7"]])

我的test-runner文件如下所示:

(ns clientcommon.test-runner
  (:require [doo.runner :refer-macros [doo-tests doo-all-tests]]
            [clientcommon.crypto-test]
            [clientcommon.util-test]))

(doo-tests 'clientcommon.crypto-test
           'clientcommon.util-test)

我在Windows上这样做,我发现了一个相关的错误,但它声称已修复:https://github.com/bensu/doo/issues/60

任何想法发生了什么?

0 个答案:

没有答案