Liking cljdoc? Tell your friends :D

clojure.test.junit

clojure.test extension for JUnit-compatible XML output.

JUnit (http://junit.org/) is the most popular unit-testing library for Java. As such, tool support for JUnit output formats is common. By producing compatible output from tests, this tool support can be exploited.

To use, wrap any calls to clojure.test/run-tests in the with-junit-output macro, like this:

(use 'clojure.test) (use 'clojure.test.junit)

(with-junit-output (run-tests 'my.cool.library))

To write the output to a file, rebind clojure.test/test-out to your own PrintWriter (perhaps opened using clojure.java.io/writer).

clojure.test extension for JUnit-compatible XML output.

JUnit (http://junit.org/) is the most popular unit-testing library
for Java.  As such, tool support for JUnit output formats is
common.  By producing compatible output from tests, this tool
support can be exploited.

To use, wrap any calls to clojure.test/run-tests in the
with-junit-output macro, like this:

  (use 'clojure.test)
  (use 'clojure.test.junit)

  (with-junit-output
    (run-tests 'my.cool.library))

To write the output to a file, rebind clojure.test/*test-out* to
your own PrintWriter (perhaps opened using
clojure.java.io/writer).
raw docstring

*depth*clj

source

*var-context*clj

source

element-contentclj

(element-content content)
source

error-elclj

(error-el message expected actual)
source

failure-elclj

(failure-el message expected actual)
source

finish-caseclj

(finish-case)
source

finish-elementclj

(finish-element tag pretty)
source

finish-suiteclj

(finish-suite)
source

indentclj

(indent)
source

junit-reportcljmultimethod

source

message-elclj

(message-el tag message expected-str actual-str)
source

package-classclj

(package-class name)
source

start-caseclj

(start-case name classname)
source

start-elementclj

(start-element tag pretty & [attrs])
source

start-suiteclj

(start-suite name)
source

suite-attrsclj

(suite-attrs package classname)
source

test-nameclj

(test-name vars)
source

with-junit-outputcljmacro

(with-junit-output & body)

Execute body with modified test-is reporting functions that write JUnit-compatible XML output.

Execute body with modified test-is reporting functions that write
JUnit-compatible XML output.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close