如何使测试挂起

How to make a test pending

我正在尝试在 clojure sepclj 中挂起测试。

文档建议将 pending 添加到特性中。应该如何添加?

以下方法不会产生预期的行为:

(it :pending "should ...")
(it "should ..." :pending)
(pending (it "should ..."))

谢谢

让我们从简单的规格开始:

(describe "truthiness"
  (it "tests if my-fn returns true"
    (should (my-fn))))

要使 (it "tests if my-fn returns true" ...) 特征待定:

(describe "truthiness"
  (it "tests if my-fn returns true"
    (pending "my-fn should be revisited") ; If message is not specified "Not Yet Implemented" will be used instead
    (should (my-fn))))