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.
(*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.
(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.
(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.
(run-test! system test-case)
Execute a test. Returns the updated test map.
Execute a test. Returns the updated test map.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close