run-all-tests

clojure.contrib.test-is

  • (run-all-tests)
  • (run-all-tests re)
Runs all tests in all namespaces; prints results.
Optional argument is a regular expression; only namespaces with
names matching the regular expression (with re-matches) will be
tested.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/test.clj:743 top

(defn run-all-tests
  "Runs all tests in all namespaces; prints results.
  Optional argument is a regular expression; only namespaces with
  names matching the regular expression (with re-matches) will be
  tested."
  {:added "1.1"}
  ([] (apply run-tests (all-ns)))
  ([re] (apply run-tests (filter #(re-matches re (name (ns-name %))) (all-ns)))))
Vars in clojure.contrib.test-is/run-all-tests: all-ns apply defn filter name ns-name re-matches
Used in 0 other vars

Comments top

No comments for run-all-tests. Log in to add a comment.