EXPERIMENTAL. COULD BE CHANGED AT ANY TIME. Please share usage reports at https://github.com/noahtheduke/lazytest/issues.
An adaption of the QUnit framework. Only adapts the unnested style as the nested style can be achieved natively with lazytest.core
macros.
prep-ns-suite!
must be called before module!
or test!
, as they expect :lazytest/ns-suite
to point to an existing suite.
Example:
(ns noahtheduke.example-test
(:require
[lazytest.interfaces.qunit :refer [prep-ns-suite! module! test! assert!]]))
(prep-ns-suite!)
(module! "Group A")
(test! "foo"
(assert! (true? (pos? 1)))
(assert! (false? (pos? 0)) "Expected to be false"))
EXPERIMENTAL. COULD BE CHANGED AT ANY TIME. Please share usage reports at <https://github.com/noahtheduke/lazytest/issues>. An adaption of the [QUnit](https://qunitjs.com/) framework. Only adapts the unnested style as the nested style can be achieved natively with [[lazytest.core]] macros. [[prep-ns-suite!]] must be called before [[module!]] or [[test!]], as they expect `:lazytest/ns-suite` to point to an existing suite. Example: ```clojure (ns noahtheduke.example-test (:require [lazytest.interfaces.qunit :refer [prep-ns-suite! module! test! assert!]])) (prep-ns-suite!) (module! "Group A") (test! "foo" (assert! (true? (pos? 1))) (assert! (false? (pos? 0)) "Expected to be false")) ```
(assert! expr)
(assert! expr msg)
Alias of lazytest.core/expect
for the QUnit interface.
Alias of [[lazytest.core/expect]] for the QUnit interface.
(module! doc)
Add a new suite to the ns :lazytest/ns-suite.
Add a new suite to the *ns* :lazytest/ns-suite.
(prep-ns-suite!)
Set the ns :lazytest/ns-suite to a fresh suite.
Set the *ns* :lazytest/ns-suite to a fresh suite.
(test! doc & body)
Add a new test case to the current suite.
Add a new test case to the current suite.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close