Make it easier to output your clojure.test results in JUnit format.
Clojure Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/clojure_test_junit_output
test/clojure_test_junit_output
.gitignore
LICENSE
README.md
circle.yml
project.clj
release.sh

README.md

clojure-test-junit-output

Make it easier to output your test results in JUnit format. Yes, there's clojure.test.junit but it doesn't do timing and it requires you to choose between the normal clojure.test output (read by humans) and JUnit XML which is not read by most people if they have anything to say about it.

Usage

Add this library to your dependencies. You can put it in your :test profile if you'd like.

Then all you need to do is wrap your tests. You can doe this with a :once fixture like so:

; Add this to your :require vector in your ns declaration.
[clojure-test-junit-output.core :refer (with-junit-output)]

(clojure.test/use-fixtures :once (with-junit-output "/where/you/want.xml"))

See clojure-test-junit-output.test-core for a complete example.

License

This library is distributed under a two clause BSD-style license. See the LICENSE file for details.