您可以deftest使用testing宏在上下文中的单元测试中将相关的断言分组:
(deftest add-nums (testing "Positive cases" (is (= 2 (+ 1 1))) (is (= 4 (+ 2 2)))) (testing "Negative cases" (is (= -1 (+ 2 -3))) (is (= -4 (+ 8 -12)))))
这将有助于澄清运行时的测试输出。请注意,它testing必须在内发生deftest。