簡體   English   中英

Clojure Leiningen 測試失敗未顯示在錯誤摘要中

[英]Clojure Leiningen test FAILs not shown in error summary

在我當前的 Clojure 項目上運行lein test時,我得到了兩次測試失敗,但總結說我得到了 0 次失敗。 請參閱下面的輸出片段:

$ lein test
FAIL in clojure.lang.PersistentList$EmptyList@1 (config.clj:53)
expected: (= (some-fn some-input) (expected-output))
  actual: (not (= (actual-output) (expected-output)))

FAIL in clojure.lang.PersistentList$EmptyList@1 (config.clj:53)
expected: (= (some-fn some-other-input) (other-expected-output))
  actual: (not (= (other-actual-output) (other-expected-output)))

lein test project.test.config

lein test project.test.other-module

lein test project test.another-module

lein test project test.one-more

Ran 8 tests containing 71 assertions.
0 failures, 0 errors.

請注意FAIL行和最后一行。 以前在這個項目中進行了測試,但我無法從lein test分離出哪些代碼更改可能影響了這種不正確的行為。

有沒有人以前見過這種情況並知道可能導致它發生的原因?

我在發布這篇文章后不久就發現了這個問題,但我把這個問題留給了其他人。 我不小心把我的測試放在def而不是deftest

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM