Liking cljdoc? Tell your friends :D

lazytest.experimental.interfaces.clojure-test

EXPERIMENTAL. COULD BE CHANGED AT ANY TIME. Please share usage reports at https://github.com/noahtheduke/lazytest/issues

An adaption of the built-in clojure.test framework. testing works the same way as [[clojure.test/testing]], so it does not support metadata selection like lazytest.core/describe.

Supported [[clojure.test]] vars:

Example:

(ns noahtheduke.example-test
  (:require
   [lazytest.experimental.interfaces.clojure-test :refer [deftest are is testing]]))

(deftest deftest-test
  (is true "expect works inside")
  (testing "testing works"
    (is (= 7 (+ 3 4)) "is works"))
  (testing "are works"
    (are [x y] (= x y)
      2 (+ 1 1)
      4 (* 2 2))))
EXPERIMENTAL. COULD BE CHANGED AT ANY TIME. Please share usage reports at https://github.com/noahtheduke/lazytest/issues

An adaption of the built-in `clojure.test` framework. [[testing]] works the same way as [[clojure.test/testing]], so it does not support metadata selection like [[lazytest.core/describe]].

Supported [[clojure.test]] vars:
* [[deftest]]
* [[testing]]
* [[is]]
* [[are]]

Example:
```clojure
(ns noahtheduke.example-test
  (:require
   [lazytest.experimental.interfaces.clojure-test :refer [deftest are is testing]]))

(deftest deftest-test
  (is true "expect works inside")
  (testing "testing works"
    (is (= 7 (+ 3 4)) "is works"))
  (testing "are works"
    (are [x y] (= x y)
      2 (+ 1 1)
      4 (* 2 2))))
```
raw docstring

*testing-strs*clj

Adapted from [[clojure.test/testing-contexts]].

Adapted from [[clojure.test/*testing-contexts*]].
sourceraw docstring

arecljmacro

(are argv expr & args)

Adapted from [[clojure.test/are]].

Adapted from [[clojure.test/are]].
sourceraw docstring

deftestcljmacro

(deftest test-name & body)

Adapted from [[clojure.test/deftest]].

Adapted from [[clojure.test/deftest]].
sourceraw docstring

iscljmacro

(is form)
(is form msg)

Adapted from [[clojure.test/is]].

Adapted from [[clojure.test/is]].
sourceraw docstring

testingcljmacro

(testing doc & body)

Adapted from [[clojure.test/testing]].

Adapted from [[clojure.test/testing]].
sourceraw docstring

testing-strclj

(testing-str)
source

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

× close