Assertions
38- value
clojure.test
True by default. If set to false, no test functions will be created by deftest, set-test, or with-test. Use this to...
valueclojure.test
- value
clojure.test
The maximum depth of stack traces to print when an Exception is thrown during a test. Defaults to nil, which means pr...
valueclojure.test
- value
clojure.test
- value
clojure.test
- value
clojure.test
Checks multiple assertions with a template expression. See clojure.template/do-template for an explanation of templa...
macroclojure.test
Returns generic assertion code for any test, including macros, Java method calls, or isolated symbols.
functionclojure.test
- multimethod
clojure.test
Returns generic assertion code for any functional predicate. The 'expected' argument to 'report' will contains the or...
functionclojure.test
Composes two fixture functions, creating a new fixture function that combines their behavior.
functionclojure.test
Defines a test function with no arguments. Test functions may call other tests, so tests may be composed. If you com...
macroclojure.test
Like deftest but creates a private var.
macroclojure.test
Add file and line information to a test result and call report. If you are writing a custom assert-expr method, call ...
functionclojure.test
Returns true if argument is a function or a symbol that resolves to a function (not a macro).
functionclojure.test
Like var-get but returns nil if the var is unbound.
functionclojure.test
Increments the named counter in *report-counters*, a ref to a map. Does nothing if *report-counters* is nil.
functionclojure.test
Generic assertion macro. 'form' is any predicate test. 'msg' is an optional message to attach to the assertion. ...
macroclojure.test
Composes a collection of fixtures, in order. Always returns a valid fixture function, even if the collection is empty...
functionclojure.test
Generic reporting function, may be overridden to plug in different report formats (e.g., TAP, JUnit). Assertions suc...
multimethodclojure.test
Runs all tests in all namespaces; prints results. Optional argument is a regular expression; only namespaces with na...
functionclojure.test
Runs a single test. Because the intent is to run a single test, there is no check for the namespace test-ns-hook.
macroclojure.test
Runs the tests for a single Var, with fixtures executed around the test, and summary output after.
functionclojure.test
Runs all tests in the given namespaces; prints results. Defaults to current namespace if none given. Returns a map ...
functionclojure.test
Experimental. Sets :test metadata of the named var to a fn with the given body. The var must already exist. Does no...
macroclojure.test
Returns true if the given test summary indicates all tests were successful, false otherwise.
functionclojure.test
Calls test-vars on every var interned in the namespace, with fixtures.
functionclojure.test
If the namespace defines a function named test-ns-hook, calls that. Otherwise, calls test-all-vars on the namespace. ...
functionclojure.test
If v has a function in its :test metadata, calls that function, with *testing-vars* bound to (conj *testing-vars* v).
functionclojure.test
Groups vars by their namespace and runs test-var on them with appropriate fixtures applied.
functionclojure.test
Adds a new string to the list of testing contexts. May be nested, but must occur inside a test function (deftest).
macroclojure.test
Returns a string representation of the current test context. Joins strings in *testing-contexts* with spaces.
functionclojure.test
Returns a string representation of the current test. Renders names in *testing-vars* as a list, then the source file ...
functionclojure.test
Used by the 'is' macro to catch unexpected exceptions. You don't call this.
macroclojure.test
Wrap test runs in a fixture function to perform setup and teardown. Using a fixture-type of :each wraps every test i...
multimethodclojure.test
Takes any definition form (that returns a Var) as the first argument. Remaining body goes in the :test metadata functi...
macroclojure.test
Runs body with *out* bound to the value of *test-out*.
macroclojure.test