Liking cljdoc? Tell your friends :D

cuic.test


-assert-snapshotclj

(-assert-snapshot msg [match? id actual])
source

-assert-with-retryclj

(-assert-with-retry msg form)
source

-with-retrycljmacro

(-with-retry f assertion-form)
source

actual-fileclj

(actual-file id ext)
source

expected-fileclj

(expected-file id ext)
source

is*cljmacro

(is* form)

Assertion macro that works like clojure.test/is but if the result value is non-truthy or asserted expression throws a cuic exception, then expression is re-tried until truthy value is received or timeout exceeds.

Assertion macro that works like clojure.test/is but if the result value is
non-truthy or asserted expression throws a cuic exception, then expression
is re-tried until truthy value is received or timeout exceeds.
sourceraw docstring

matches-snapshot?clj

(matches-snapshot? snapshot-id actual)

Tries to match the given actual data to the snapshot associated to the given id (keyword). If snapshot does not exist, this function creates it. All data that can be serialized with pr-str can be tested with snapshot testing.

HINT: Use fully qualified keyword to distinguish snapshots from different test namespaces. You can also share same snapshots by using same id.

Tries to match the given actual data to the snapshot associated to the
given id (keyword). If snapshot does not exist, this function creates it.
All data that can be serialized with `pr-str` can be tested with snapshot
testing.

HINT: Use fully qualified keyword to distinguish snapshots from different
test namespaces. You can also share same snapshots by using same id.
sourceraw docstring

read-ednclj

(read-edn f)
source

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

× close