【问题标题】:Clojure - require all test namespaces within the REPL?Clojure - 需要 REPL 中的所有测试命名空间?
【发布时间】:2013-02-17 07:25:08
【问题描述】:

假设我有以下命名空间:

(ns testsuite.bar ...)

(ns testsuite.foo ...)

有没有办法要求/使用testsuite 中的所有命名空间?

类似:

(use 'testsuite.*)
(run-all-tests)

【问题讨论】:

    标签: clojure


    【解决方案1】:

    不,不支持。您必须单独使用/要求。但是,(run-all-tests) 不需要使用或要求任何测试命名空间,因为它会自动运行所有可用(已加载)命名空间中的所有测试。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-09-18
      • 2023-03-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-12
      • 2022-01-16
      • 1970-01-01
      相关资源
      最近更新 更多