macro | since v0.0-2496 | ![]() | Edit |
(testing string & body)
Adds a new string to the list of testing contexts. May be nested, but must occur inside a test function (deftest).
(defmacro testing
([string & body]
`(do
(update-current-env! [:testing-contexts] conj ~string)
(try
~@body
(finally
(update-current-env! [:testing-contexts] rest))))))