Liking cljdoc? Tell your friends :D

mb.hawk.junit.write

Logic related to writing test results for a namespace to a JUnit XML file. See https://stackoverflow.com/a/9410271/1198455 for the JUnit output spec.

Logic related to writing test results for a namespace to a JUnit XML file. See
https://stackoverflow.com/a/9410271/1198455 for the JUnit output spec.
raw docstring

clean-output-dir!clj

(clean-output-dir!)

Clear any files in the output dir, and forget earlier write failures; create the dir if needed.

Clear any files in the output dir, and forget earlier write failures; create the dir if needed.
sourceraw docstring

create-thread-pool!clj

(create-thread-pool!)

Create a thread pool to write JUnit output with. JUnit output is written in background threads so tests are not slowed down by it.

Create a thread pool to write JUnit output with. JUnit output is written in background threads so tests are not
slowed down by it.
sourceraw docstring

delete-summary!clj

(delete-summary!)

Delete the summary file, if there is one.

Delete the summary file, if there is one.
sourceraw docstring

summary-filenameclj

The file in the output dir that marks a finished run. Hawk writes it last, after every other JUnit file of the run, so a run with no such file did not finish.

The file in the output dir that marks a finished run.
Hawk writes it last, after every other JUnit file of the run, so a run with no such file did not finish.
sourceraw docstring

var-less-errors-filenameclj

(var-less-errors-filename test-ns)

The file for the var-less errors of test-ns, a namespace symbol, or of no namespace when it is nil.

The file for the var-less errors of `test-ns`, a namespace symbol, or of no namespace when it is nil.
sourceraw docstring

wait-for-writes-to-finishclj

(wait-for-writes-to-finish)

Wait up to 10 seconds for the thread pool that writes results to finish. Returns true when every file of the run was written, and false when a write failed or was still running.

Wait up to 10 seconds for the thread pool that writes results to finish.
Returns true when every file of the run was written, and false when a write failed or was still running.
sourceraw docstring

write-ns-result!clj

(write-ns-result! result)

Submit a background thread task to write the JUnit output for the tests in a namespace when an :end-test-ns event is encountered.

Submit a background thread task to write the JUnit output for the tests in a namespace when an `:end-test-ns` event
is encountered.
sourceraw docstring

write-summary!clj

(write-summary! {test-count :test :keys [pass fail error]})

Write the run's summary counts to summary-filename as JSON: test, pass, fail and error.

Write the run's `summary` counts to [[summary-filename]] as JSON: `test`, `pass`, `fail` and `error`.
sourceraw docstring

write-var-less-errors!clj

(write-var-less-errors! test-ns errors)

Write the var-less errors of test-ns (a namespace symbol, or nil for none) to var-less-errors-filename, replacing an earlier batch. Does nothing when errors is empty.

Write the var-less `errors` of `test-ns` (a namespace symbol, or nil for none) to [[var-less-errors-filename]],
replacing an earlier batch.
Does nothing when `errors` is empty.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close