RCT turns rich comment forms into tests.
RCT turns rich comment forms into tests.
(capture-clojure-test-out & body)
Capture any string output fom clojure.test while invoking body
, and
isolate test state.
Capture any string output fom clojure.test while invoking `body`, and isolate test state.
(rct-data-seq rct-zloc)
Take an rct zloc and return a series of maps with information about tests to run.
Take an rct zloc and return a series of maps with information about tests to run.
(rct-zlocs source-file-root-zloc)
Given the root zloc for a source file, return a series of rct zlocs.
Given the root zloc for a source file, return a series of rct zlocs.
(require-file-for-ns ns)
Given a Namespace, attempt to find a corresponding source file, or throw an exception if this isn't possible.
Given a Namespace, attempt to find a corresponding source file, or throw an exception if this isn't possible.
(run-file-tests! file ns)
Take a file path and the namespace it corresponds to, and run tests.
Take a file path and the namespace it corresponds to, and run tests.
(run-ns-tests! ns)
Take a namespace or namespace symbol, attempt to find the corresponding source file, and run tests in the namespace.
Take a namespace or namespace symbol, attempt to find the corresponding source file, and run tests in the namespace.
(run-tests* zloc)
Take a rewrite-clj
zipper pointed at the root of a file and run all rich
comment tests.
The zipper must have be configured with {:track-position? true}.
ns and file should be bound before calling this.
Take a `rewrite-clj` zipper pointed at the root of a file and run all rich comment tests. The zipper must have be configured with {:track-position? true}. *ns* and *file* should be bound before calling this.
(with-clojure-test-reporting & body)
Run body
with clojure.test reporting, unless it is already active.
Run `body` with clojure.test reporting, unless it is already active.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close