Back
test-ns (clj)
(source)function
(test-ns ns)
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*. Returns the final, dereferenced state of
*report-counters*.
Examples
tonsky/datascript
(ns datascript.test.ident
(:require
[clojure.test :as t :refer [is are deftest testing]]
[datascript.core :as d]))
#_(user/test-var #'test-transact!)
#_(t/test-ns 'datascript.test.ident)
tonsky/datascript
(ns datascript.test.query-find-specs
(:require
#?(:cljs [cljs.test :as t :refer-macros [is are deftest testing]]
:clj [clojure.test :as t :refer [is are deftest testing]])
[datascript.core :as d]
[datascript.db :as db]
[datascript.test.core :as tdc]))
#_(t/test-ns 'datascript.test.query-find-specs)
tonsky/datascript
(ns datascript.test.parser-find
(:require
#?(:cljs [cljs.test :as t :refer-macros [is are deftest testing]]
:clj [clojure.test :as t :refer [is are deftest testing]])
[datascript.core :as d]
[datascript.db :as db]
[datascript.parser :as dp]
[datascript.test.core :as tdc]))
#_(t/test-ns 'datascript.test.find-parser)
tonsky/datascript
(ns datascript.test.query
(:require
#?(:cljs [cljs.test :as t :refer-macros [is are deftest testing]]
:clj [clojure.test :as t :refer [is are deftest testing]])
[datascript.core :as d]
[datascript.db :as db]
[datascript.test.core :as tdc])
#?(:clj
(:import [clojure.lang ExceptionInfo])))
#_(require 'datascript.test.query :reload)
#_(clojure.test/test-ns 'datascript.test.query)
babashka/babashka
(ns datalog.parser.pull-test
(:require [datalog.parser.pull :as dpp]
#?(:cljs [cljs.test :as t :refer-macros [is are deftest testing]]
:clj [clojure.test :as t :refer [is are deftest testing]])))
#_(t/test-ns 'datahike.test.pull-parser)