Kaocha's data shapes for hooks: the testables of namespaces and vars,
their result counts, and the test plan. Pure, and kept apart from
volley.hooks so that a worker can build them without loading the
parent's run-state code.
Kaocha's data shapes for hooks: the testables of namespaces and vars, their result counts, and the test plan. Pure, and kept apart from `volley.hooks` so that a worker can build them without loading the parent's run-state code.
(ns-testable ns-sym)The testable of namespace ns-sym before it is loaded
(kaocha.type.ns/->testable).
The testable of namespace `ns-sym` before it is loaded (`kaocha.type.ns/->testable`).
(test-plan kaocha-cfg suites)(test-plan kaocha-cfg suites result-key)Kaocha's test plan shape: kaocha-cfg with :kaocha/tests replaced by
:kaocha.test-plan/tests (or result-key) holding suites.
Kaocha's test plan shape: `kaocha-cfg` with `:kaocha/tests` replaced by `:kaocha.test-plan/tests` (or `result-key`) holding `suites`.
(var-testable ns-sym var-sym var-meta)The testable of test var var-sym in ns-sym with metadata
var-meta (kaocha.type.ns/-load); the shell adds :kaocha.var/var
and :kaocha.var/test.
The testable of test var `var-sym` in `ns-sym` with metadata `var-meta` (`kaocha.type.ns/-load`); the shell adds `:kaocha.var/var` and `:kaocha.var/test`.
(with-result testable {:keys [pass fail error pending]})testable with Kaocha's result counts.
`testable` with Kaocha's result counts.
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 |