You're viewing version 1.2.0 of with-junit-output. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16

with-junit-output

clojure.test.junit

  • (with-junit-output & body)
Execute body with modified test-is reporting functions that write
JUnit-compatible XML output.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/test/junit.clj:182 top

(defmacro with-junit-output
  "Execute body with modified test-is reporting functions that write
  JUnit-compatible XML output."
  {:added "1.1"}
  [& body]
  `(binding [t/report junit-report
             *var-context* (list)
             *depth* 1]
     (println "")
     (println "")
     (let [result# ~@body]
       (println "")
       result#)))
Vars in clojure.test.junit/with-junit-output: defmacro apply binding concat let list println seq vector
Used in 0 other vars

Comments top

No comments for with-junit-output. Log in to add a comment.