Liking cljdoc? Tell your friends :D

greenlight.test

A test is a collection of steps which are run in sequence to exercise a specific usage scenario.

A _test_ is a collection of steps which are run in sequence to exercise a
specific usage scenario.
raw docstring

*report*clj

(*report* event)

Dynamic reporting function which is called at various points in the test execution. The event data should be a map containing at least a :type key.

Dynamic reporting function which is called at various points in the test
execution. The event data should be a map containing at least a `:type` key.
sourceraw docstring

deftestcljmacro

(deftest test-sym & body)

Defines a new integration test. In the first position, the value can either be an optional docstring or an optional test configuration map. An integration test is a collection of individual steps or an arbitrarily nested sequential collection of steps.

Defines a new integration test. In the first position, the value can
either be an optional docstring or an optional test configuration
map. An integration test is a collection of individual steps or an
arbitrarily nested sequential collection of steps.
sourceraw docstring

elapsedclj

(elapsed result)

Calculates the elapsed time a test took. Returns the duration in fractional seconds, or 0.0 if started-at or ended-at is missing.

Calculates the elapsed time a test took. Returns the duration in fractional
seconds, or 0.0 if started-at or ended-at is missing.
sourceraw docstring

run-test!clj

(run-test! system test-case)
(run-test! system options test-case)

Execute a test. Returns the updated test map.

Execute a test. Returns the updated test map.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close