1.2.0 permalink Arrow_down_16x16
  • (testing string & body)
Adds a new string to the list of testing contexts. May be nested,
but must occur inside a test function (deftest).

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/test.clj:568 top

(defmacro testing
  "Adds a new string to the list of testing contexts.  May be nested,
  but must occur inside a test function (deftest)."
  {:added "1.1"}
  [string & body]
  `(binding [*testing-contexts* (conj *testing-contexts* ~string)]
     ~@body))
Vars in clojure.contrib.test-is/testing: defmacro apply binding concat conj list seq vector
Used in 0 other vars

Comments top

No comments for testing. Log in to add a comment.