(default-env & reporters)
Creates a default test environment that supports dispatching to multiple reporters.
Creates a default test environment that supports dispatching to multiple reporters.
(deftests sym)
Returns a function that consumes a test env and returns a list of fns that can be passed to cljs.test/run-block
.
Unlike cljs.test/run-tests-block
, this runner filters test namespaces at runtime using a function instead of relying
on compile-time filtering based on a regex. Provide a namespace symbol filter predicate by adding :filter
to env.
Returns a function that consumes a test env and returns a list of fns that can be passed to `cljs.test/run-block`. Unlike `cljs.test/run-tests-block`, this runner filters test namespaces at runtime using a function instead of relying on compile-time filtering based on a regex. Provide a namespace symbol filter predicate by adding `:filter` to env.
(run-tests tests)
(run-tests tests env)
Similar to cljs.test/run-all-tests, but with support for:
:filter
:reporters
.Similar to cljs.test/run-all-tests, but with support for: * runtime filtering via `:filter` * multiple reporters via `:reporters`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close