Clojure Leiningen 测试失败未显示在错误摘要中

Clojure Leiningen test FAILs not shown in error summary

当 运行 lein test 在我当前的 Clojure 项目中,我遇到了两次测试失败,但摘要表明我失败了 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.