CrossClj

1.10.0-alpha4 docs

SourceDocs



RECENT
    VARS
    *depth*
    *var-context*
    element-content
    error-el
    escape-xml
    escape-xml-map
    failure-el
    finish-case
    finish-element
    finish-suite
    indent
    junit-report
    message-el
    package-class
    start-case
    start-element
    start-suite
    suite-attrs
    test-name
    with-junit-output

    « Index of all namespaces of this project

    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).

    — Jason Sankey

    (element-content content)
    (error-el message expected actual)
    Private
    (escape-xml text)
    (failure-el message expected actual)
    (finish-element tag pretty)
    multimethodDynamic
    (message-el tag message expected-str actual-str)
    (package-class name)
    (start-case name classname)
    (start-element tag pretty & [attrs])
    (start-suite name)
    (suite-attrs package classname)
    (test-name vars)
    macro
    (with-junit-output & body)
    Execute body with modified test-is reporting functions that write
    JUnit-compatible XML output.