Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/conormcd/clojure-test-junit-output
Make it easier to output your clojure.test results in JUnit format.
https://github.com/conormcd/clojure-test-junit-output
clojure junit-format
Last synced: about 2 months ago
JSON representation
Make it easier to output your clojure.test results in JUnit format.
- Host: GitHub
- URL: https://github.com/conormcd/clojure-test-junit-output
- Owner: conormcd
- License: bsd-2-clause
- Created: 2016-02-15T00:45:25.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:45:43.000Z (about 1 year ago)
- Last Synced: 2024-09-16T15:18:48.018Z (4 months ago)
- Topics: clojure, junit-format
- Language: Clojure
- Size: 5.86 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:```clojure
; 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.