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.
(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.
(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.
(delete-summary!)Delete the summary file, if there is one.
Delete the summary file, if there is one.
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.
(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.
(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.
(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.
(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`.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |