macro | since v0.0-2496 | ![]() | Edit |
(test-ns ns)
(test-ns env [quote ns :as form])
If the namespace defines a function named test-ns-hook, calls that. Otherwise, calls test-all-vars on the namespace. 'ns' is a namespace object or a symbol. Internally binds *report-counters* to a ref initialized to *initial-report-counters*.
(defmacro test-ns
([ns] `(test-ns (empty-env) ~ns))
([env [quote ns :as form]]
`(run-block
(concat (test-ns-block ~env ~form)
[(fn []
(clear-env!))]))))