Back
run-all-tests (clj)
(source)function
(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.
Examples
babashka/babashka
(ns honeysql.core-test
(:refer-clojure :exclude [format update])
(:require [#?@(:clj [clojure.test :refer]
:cljs [cljs.test :refer-macros]) [deftest testing is]]
[honeysql.core :as sql]
[honeysql.format :as sql-f]
[honeysql.helpers :refer [select modifiers from join left-join
right-join full-join cross-join
where group having
order-by limit offset values columns
insert-into with merge-where merge-having]]
honeysql.format-test))
#?(:cljs (cljs.test/run-all-tests))
clojure/core.typed
(ns clojure.core.typed.test.testnew
(:require [clojure.core.typed :as t]
[clojure.test :refer :all]
[clojure.core.typed.test.test-utils :refer :all]
[clojure.core.typed.test.destructure]))
(deftest function?-test
(is-tc-e (function? function?) Boolean
:requires [[clojure.test :refer [function?]]])
(is-tc-err (function? function?) String
:requires [[clojure.test :refer [function?]]]))
(deftest assert-any-test
(is-tc-e (assert-any "Hi" (= 4 (+ 2 2))) Any
:requires [[clojure.test :refer [assert-any]]]))
(deftest do-report-test
(is-tc-e #(do-report 1)
:requires [[clojure.test :refer [do-report]]]))
(deftest run-tests-test
(is-tc-e #(run-tests) [-> (Map Any Any)]
:requires [[clojure.test :refer [run-tests]]])
(is-tc-err #(run-tests) [-> String]
:requires [[clojure.test :refer [run-tests]]]))
(deftest run-all-tests-test
(is-tc-e #(run-all-tests) [-> (Map Any Any)]
:requires [[clojure.test :refer [run-all-tests]]])
(is-tc-e #(run-all-tests #"asdf") [-> (Map Any Any)]
:requires [[clojure.test :refer [run-all-tests]]])
(is-tc-err #(run-all-tests) [:-> String]
:requires [[clojure.test :refer [run-all-tests]]]))
(deftest successful?-test
(is-tc-e #(successful? {}) [-> Boolean]
:requires [[clojure.test :refer [successful?]]]))
(deftest compose-fixtures-test
(is-tc-e (compose-fixtures (fn [a :- [-> Any]] (a))
(fn [b :- [-> Any]] (b)))
[[-> Any] -> Any]
:requires [[clojure.test :refer [compose-fixtures]]]))
(deftest testing-vars-str-test
(is-tc-e #(testing-vars-str {}) [-> String]
:requires [[clojure.test :refer [testing-vars-str]]])
(is-tc-err (testing-vars-str 1) Int
:requires [[clojure.test :refer [testing-vars-str]]]))
(deftest testing-contexts-str-test
(is-tc-e (testing-contexts-str) String
:requires [[clojure.test :refer [testing-contexts-str]]])
(is-tc-err (testing-contexts-str) (Map Any Any)
:requires [[clojure.test :refer [testing-contexts-str]]])
(is-tc-err (testing-contexts-str 1) String
:requires [[clojure.test :refer [testing-contexts-str]]]))
viebel/klipse-repl
(ns run-tests
(:require [clojure.test :refer [run-all-tests]]))
(require 'klipse-repl.core)
(clojure.test/run-all-tests #"klipse-repl.*")
day8/re-frame-debux
(ns day8.re-frame.debux.runner
(:require [clojure.test :refer [deftest run-all-tests is]]
[day8.re-frame.debux.common.util-test]))
(run-all-tests #"day8.*")
nilenso/bean
(ns bean.core-test
(:require [clojure.test :refer [run-all-tests]]))
(comment (run-all-tests))