ClojureDocs

Nav

Namespaces

Clojure/Conj 2026 — Charlotte, NC — Sept 30 - Oct 2 Learn More & Get Tickets →

with-test

clojure.test

Available since 1.1 (source)
  • (with-test definition & body)
Takes any definition form (that returns a Var) as the first argument.
Remaining body goes in the :test metadata function for that Var.
 When *load-tests* is false, only evaluates the definition, ignoring
the tests.