fixturex.core documentation

Some helpful macros for using fixtures. These are particularly helpful when
defining tests. Often times a fixture should only be used for a subset of
tests in a namespace or even just a couple of contexts in a few tests.
clojure.test/use-fixtures does not operate at this level of granularity.

deftest-fx

macro

(deftest-fx name fixtures & body)
Defines a test just like clojure test, but with the given fixtures around the
body.

testing-fx

macro

(testing-fx msg fixtures & body)
Define testing context just like testing but with the given fixtures around
the body.

with-fixtures

macro

(with-fixtures fixtures & body)
Evaluate the body with the given fixtures.

with-fixtures-fn

(with-fixtures-fn fixtures f)
Join the given fixtures and invoke the given function with them.