Adds a new string to the list of testing contexts. May be nested,
but must occur inside a test function (deftest).
(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))
Comments top
No comments for testing. Log in to add a comment.