1

我正在尝试在 clojure sepclj 中进行测试。

文档建议添加pending特征。它应该如何添加?

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

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

谢谢

4

1 回答 1

3

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

(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))))
于 2015-01-22T12:40:44.237 回答