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 attrs & steps)
Define a new integration test. The test attributes may be a simple string description or a map of configuration to merge into the test. Defines a function which will construct the test config map. Steps can be individual steps or an arbitrarily nested sequential collection of steps.
Define a new integration test. The test attributes may be a simple string description or a map of configuration to merge into the test. Defines a function which will construct the test config map. Steps can be 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