Public entry point for scry, an in-process test runner for AI agents.
run executes clojure.test tests in-process and returns an inspectable
result map; the most recent result is also retained in last-run so it can
be inspected interactively after the run. The kaocha adapter lives in
scry.kaocha (loaded only when the :kaocha alias is present).
Public entry point for scry, an in-process test runner for AI agents. `run` executes clojure.test tests in-process and returns an inspectable result map; the most recent result is also retained in `last-run` so it can be inspected interactively after the run. The kaocha adapter lives in `scry.kaocha` (loaded only when the :kaocha alias is present).
(failed-test var-sym)(failed-test result var-sym)Return the failure/error entry for fully-qualified test var symbol var-sym.
Return the failure/error entry for fully-qualified test var symbol `var-sym`.
(failures)(failures result)Return failure/error entries of result (defaults to the last run).
Prefers the compatibility :failures collection when present and otherwise filters canonical :results. Returns an empty vector when the selected result format omits both collections.
Return failure/error entries of `result` (defaults to the last run). Prefers the compatibility :failures collection when present and otherwise filters canonical :results. Returns an empty vector when the selected result format omits both collections.
(last-result)Return the most recent run result, or nil if nothing has run.
Return the most recent run result, or nil if nothing has run.
Atom holding the most recent run result, for post-run inspection.
Atom holding the most recent run result, for post-run inspection.
(output var-sym)(output result var-sym)Return {:out s :err s} captured for failed test var var-sym, when present.
Return {:out s :err s} captured for failed test var `var-sym`, when present.
(report-string)(report-string result)Render a human/agent-readable report of result (defaults to last run).
Render a human/agent-readable report of `result` (defaults to last run).
(run)(run opts)Run clojure.test tests in-process and return the inspectable result map.
See scry.clojure-test/run for options. The result is also stored in
last-run.
Run clojure.test tests in-process and return the inspectable result map. See `scry.clojure-test/run` for options. The result is also stored in `last-run`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |