Liking cljdoc? Tell your friends :D
Clojure only.

scry.kaocha

In-process kaocha runner producing scry's inspectable result map.

Kaocha already captures per-test clojure.test events and (via its capture-output plugin) per-test output. This adapter runs kaocha programmatically and transforms its result tree into scry's result model.

Note: kaocha merges stdout and stderr into a single captured stream, so for kaocha results the combined output is placed in :out and :err is empty.

In-process kaocha runner producing scry's inspectable result map.

Kaocha already captures per-test clojure.test events and (via its
capture-output plugin) per-test output. This adapter runs kaocha
programmatically and transforms its result tree into scry's result model.

Note: kaocha merges stdout and stderr into a single captured stream, so for
kaocha results the combined output is placed in :out and :err is empty.
raw docstring

result->scryclj

(result->scry kaocha-result)
(result->scry kaocha-result extra)

Transform a raw kaocha result map into scry's inspectable result shape.

extra may supply additional :summary entries (e.g. :duration-ms), :scope, and :result-format. Kaocha defaults to :suite scope because this adapter does not currently expose namespace/var selectors matching scry.clojure-test.

Transform a raw kaocha result map into scry's inspectable result shape.

`extra` may supply additional :summary entries (e.g. :duration-ms), :scope,
and :result-format. Kaocha defaults to :suite scope because this adapter does
not currently expose namespace/var selectors matching scry.clojure-test.
raw docstring

runclj

(run)
(run opts)

Run kaocha tests in-process and return scry's inspectable result map.

Options: :config a fully-formed kaocha config map (overrides loading tests.edn) :suite a single suite selector :suites a collection of suite selectors :source-paths fallback source dirs when no :config or tests.edn exists :test-paths fallback test dirs when no :config or tests.edn exists :ns-patterns fallback namespace-name regex strings :result-format suite-scope formatting overrides :progress-callback optional function called after each completed test var

Returns the same scoped result model as scry.core/run.

Run kaocha tests in-process and return scry's inspectable result map.

Options:
  :config             a fully-formed kaocha config map (overrides loading tests.edn)
  :suite              a single suite selector
  :suites             a collection of suite selectors
  :source-paths       fallback source dirs when no :config or tests.edn exists
  :test-paths         fallback test dirs when no :config or tests.edn exists
  :ns-patterns        fallback namespace-name regex strings
  :result-format      suite-scope formatting overrides
  :progress-callback  optional function called after each completed test var

Returns the same scoped result model as `scry.core/run`.
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