Liking cljdoc? Tell your friends :D

lazytest.experimental.interfaces.qunit

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"))
```
raw docstring

assert!cljmacro

(assert! expr)
(assert! expr msg)

Alias of lazytest.core/expect for the QUnit interface.

Alias of [[lazytest.core/expect]] for the QUnit interface.
sourceraw docstring

module!cljmacro

(module! doc)

Add a new suite to the ns :lazytest/ns-suite.

Add a new suite to the *ns* :lazytest/ns-suite.
sourceraw docstring

prep-ns-suite!clj

(prep-ns-suite!)

Set the ns :lazytest/ns-suite to a fresh suite.

Set the *ns* :lazytest/ns-suite to a fresh suite.
sourceraw docstring

test!cljmacro

(test! doc & body)

Add a new test case to the current suite.

Add a new test case to the current suite.
sourceraw docstring

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

× close