Status: accepted
Kaocha plugin, or a standalone quint-connect test runner?
Neither, first. The core is a library whose entry point is an ordinary
function: (q/check driver opts) -> result map. A thin clojure.test bridge is
provided in test. A Kaocha plugin may follow later as a separate,
optional artifact.
A bespoke runner would mean re-implementing test selection, watch mode, reporting, JUnit output, CI integration and editor integration — none of which is the interesting part of this project, and all of which already exists.
Going through clojure.test gets all of it for free, and means quint-connect works
with Kaocha, cognitect.test-runner, CIDER and Calva without knowing about any
of them.
A Kaocha plugin can only add presentation: nicer diffs, per-trace progress, seed reporting. That is worth having eventually, but it is a leaf, not a foundation. Putting it in the core would also make Kaocha a dependency of every user, including those who do not run Kaocha.
The function-first shape also matters at the REPL: check returns data, so you
can inspect a failure, tweak the driver map, and re-run without a test framework
in the loop at all.
test must keep its assertion output useful, since that is where
most users will meet failures.deps.edn so the core stays at one dependency.Can you improve this documentation?Edit on GitHub
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 |