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]
     (t/with-test-out
       (println "")
       (println ""))
     (let [result# ~@body]
       (t/with-test-out (println ""))
       result#)))
Vars in clojure.test.junit/with-junit-output:
Used in 0 other vars

Comments top

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