我们为Clojure设置了大量的midje测试,他们目前使用lein midje。
我们希望使用Kaocha-midje,然后使用kaocha的其余部分,但无法使用Kaocha.type/midje找到任何测试。
以下是project.clj加载项:
:profiles {:dev {:dependencies [[midje "1.9.9"]
[lambdaisland/kaocha "1.0.861"]
[lambdaisland/kaocha-midje "0.0-5"]}}
:aliases {"kaocha" ["run" "-m" "kaocha.runner"]}还有一个test.edn文件
{:tests [
{:type :kaocha.type/midje
:id :midje
:source-paths ["src"]
:test-paths ["test/unit/directory/path/example_midje_test.clj"]}
]
:kaocha/fail-fast? false
:kaocha/color? true
:kaocha.plugin.randomize/randomize? false
:kaocha/reporter [kaocha.report/dots]
:kaocha/plugins [:kaocha.plugin/randomize
:kaocha.plugin/filter
:kaocha.plugin/capture-output]}https://github.com/lambdaisland/kaocha-midje/blob/master/test/midjetest/the_test.clj中的示例是example_midje_test.clj
但我也尝试了我们现有的一个测试,也尝试了test/unit,这样它就可以找到所有的测试,但它给出了Spec错误,但我们目前没有一个测试失败。
这是测试/单元测试路径的错误输出
WARNING: No tests were found, make sure :test-paths and :ns-patterns are configured correctly in tests.edn.发布于 2021-08-31 19:37:45
还在这里发布了https://github.com/lambdaisland/kaocha/issues/230
它说midje kaocha充其量是实验性的,并建议转移到其他地方。
https://stackoverflow.com/questions/68258499
复制相似问题