ClojureDocs

命名空间

clojure.test.junit

clojure.test extension for JUnit-compatible XML output.

  JUnit (https://junit.java.net.cn/) 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.junit 中的 Vars

*^%

*depth*
无文档
*var-context*
无文档

e

error-el
无文档

f

failure-el
无文档
finish-case
无文档
finish-suite
无文档

i

indent
无文档

j

junit-report
无文档

m

message-el
无文档

p

package-class
无文档

s

start-case
无文档
start-element
无文档
start-suite
无文档
suite-attrs
无文档

t

test-name
无文档

w

with-junit-output
使用修改后的 test-is report 函数执行主体,生成兼容 JUnit 的 XML 输出。