You're viewing version 1.2.0 of run-tests. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16

run-tests

clojure.test

  • (run-tests)
  • (run-tests & namespaces)
Runs all tests in the given namespaces; prints results.
Defaults to current namespace if none given. Returns a map
summarizing test results.

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:731 top

(defn run-tests
  "Runs all tests in the given namespaces; prints results.
  Defaults to current namespace if none given.  Returns a map
  summarizing test results."
  {:added "1.1"}
  ([] (run-tests *ns*))
  ([& namespaces]
     (let [summary (assoc (apply merge-with + (map test-ns namespaces))
                     :type :summary)]
       (do-report summary)
       summary)))
Vars in clojure.test/run-tests: *ns* defn let
Used in 0 other vars

Comments top

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