Liking cljdoc? Tell your friends :D

scry.clojure-test

In-process runner for clojure.test, producing scry's inspectable result map.

Test execution preserves clojure.test's namespace grouping and :once/:each fixture behavior while binding scry capture around the run. Each invocation installs a fresh dynamically scoped capture context so nested scry runs own their own events and output.

In-process runner for clojure.test, producing scry's inspectable result map.

Test execution preserves clojure.test's namespace grouping and :once/:each
fixture behavior while binding scry capture around the run. Each invocation
installs a fresh dynamically scoped capture context so nested scry runs own
their own events and output.
raw docstring

*owned-test-var-invocation*clj

Var currently being invoked by scry's own fixture loop via clojure.test/test-var.

Other test-var calls observed during a scry run are user/raw nested execution and should keep their own clojure.test counters while remaining isolated from the outer scry capture.

Var currently being invoked by scry's own fixture loop via clojure.test/test-var.

Other test-var calls observed during a scry run are user/raw nested
execution and should keep their own clojure.test counters while remaining
isolated from the outer scry capture.
raw docstring

discover-namespacesclj

(discover-namespaces dirs pattern)

Find namespace symbols under dirs whose names match pattern.

Find namespace symbols under `dirs` whose names match `pattern`.
raw docstring

ns-test-varsclj

(ns-test-vars ns-sym)

Return the test vars (vars carrying :test metadata) of a loaded namespace, ordered by source line for deterministic execution.

Return the test vars (vars carrying :test metadata) of a loaded namespace,
ordered by source line for deterministic execution.
raw docstring

result-scopeclj

(result-scope {:keys [vars namespaces]} _vars-to-run)

Classify the result scope from original run options and executable vars.

Explicit executable :vars take precedence. If explicit :vars resolve to no executable tests, classification falls back to an explicit namespace selector when present; discovered runs are always :suite.

Classify the result scope from original run options and executable vars.

Explicit executable :vars take precedence. If explicit :vars resolve to no
executable tests, classification falls back to an explicit namespace selector
when present; discovered runs are always :suite.
raw docstring

runclj

(run)
(run opts)

Run clojure.test tests in-process and return an inspectable result map.

Options: :vars explicit vars to run :namespaces namespace symbols to run :dirs source dirs to scan for test namespaces (default ["test"]) :ns-pattern regex matched against namespace names during discovery :result-format per-scope result formatting overrides :progress-callback optional function called with each canonical var entry after that var's final status is known

Results use :results as the canonical collection and may include :failures as a filtered compatibility collection, depending on the selected format.

Run clojure.test tests in-process and return an inspectable result map.

Options:
  :vars               explicit vars to run
  :namespaces         namespace symbols to run
  :dirs               source dirs to scan for test namespaces (default ["test"])
  :ns-pattern         regex matched against namespace names during discovery
  :result-format      per-scope result formatting overrides
  :progress-callback  optional function called with each canonical var entry
                      after that var's final status is known

Results use :results as the canonical collection and may include :failures
as a filtered compatibility collection, depending on the selected format.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close