当我在cider中运行core_test.clj文件中的测试时,只要我加载了一个buffer,就能够正常运行测试,因为我设置了(cider-auto-test-mode 1)。但这在cljs文件中不起作用。我在core_test.cljs中有以下代码
(ns myapp.core-test
(:require
[cljs.test :refer-macros [is deftest]]))
(deftest my-test
(testing "Arithmetic"
(testing "with positive integers"
(is (= 4 (+ 2 2)))
(is (= 7 (+ 3 4))))
(testing "with negative integers"
(is (= -4 (+ -2 -2)))
(is (= -1 (+ 3 -4))))))
在core.cljs文件中按下C-k键后,测试不会运行。为什么会这样,并且我应该如何使cljs测试也像clj测试一样自动运行呢?