Run state to an Ant JUnit XML report, in the shape the
kaocha.plugin/junit-xml plugin (lambdaisland/kaocha-junit-xml 1.17.101)
writes:
<testsuites>
<testsuite name="unit" id="0" hostname="localhost" errors=".."
failures=".." tests=".." timestamp=".." time=".." package="">
<properties/>
<testcase name="my.ns/my-test" classname="my.ns" time="..">
<failure message="[:fail] expected: ... actual: ..."
type="assertion failure">text</failure>
<error message=".." type="java.lang.Exception">text</error>
</testcase>
<system-out>captured output</system-out>
<system-err/>
</testsuite>
</testsuites>
One <testsuite> per suite of the plan, as Kaocha writes one per suite,
and a <testcase> per var the summary counts. Like Kaocha, errors and
failures count assertions. Failures that belong to no var (a namespace
that failed to load, a crash, an unreadable file, a namespace that never
ran) get a testcase of their own, as Kaocha reports a failed namespace
as a testcase. Pending vars carry <skipped/>, which Kaocha leaves out.
Vars the filters skipped are not part of the run and get no testcase;
Kaocha lists them as empty testcases but leaves them out of tests.
Pure: the caller passes the timestamp and working directory.
Run state to an Ant JUnit XML report, in the shape the
`kaocha.plugin/junit-xml` plugin (lambdaisland/kaocha-junit-xml 1.17.101)
writes:
<testsuites>
<testsuite name="unit" id="0" hostname="localhost" errors=".."
failures=".." tests=".." timestamp=".." time=".." package="">
<properties/>
<testcase name="my.ns/my-test" classname="my.ns" time="..">
<failure message="[:fail] expected: ... actual: ..."
type="assertion failure">text</failure>
<error message=".." type="java.lang.Exception">text</error>
</testcase>
<system-out>captured output</system-out>
<system-err/>
</testsuite>
</testsuites>
One `<testsuite>` per suite of the plan, as Kaocha writes one per suite,
and a `<testcase>` per var the summary counts. Like Kaocha, `errors` and
`failures` count assertions. Failures that belong to no var (a namespace
that failed to load, a crash, an unreadable file, a namespace that never
ran) get a testcase of their own, as Kaocha reports a failed namespace
as a testcase. Pending vars carry `<skipped/>`, which Kaocha leaves out.
Vars the filters skipped are not part of the run and get no testcase;
Kaocha lists them as empty testcases but leaves them out of `tests`.
Pure: the caller passes the timestamp and working directory.(escape s)(escape s attr?)Text made safe for XML content and attribute values: characters XML cannot hold and ANSI escape sequences are removed, the five special characters become entities, and in attributes newlines and tabs become character references so they survive attribute normalization.
Text made safe for XML content and attribute values: characters XML cannot hold and ANSI escape sequences are removed, the five special characters become entities, and in attributes newlines and tabs become character references so they survive attribute normalization.
(report run suites opts)The JUnit XML document for run state run. suites is the plan's
suites in order, [{:id kw :namespaces [ns ...] :files [path ...]}]
(:files are the suite's unreadable test files). opts:
:timestamp (ISO local date-time string), :cwd (for absolute file
paths), :omit-system-out?, :add-location? (Kaocha's
--junit-xml-omit-system-out and --junit-xml-add-location-metadata).
The JUnit XML document for run state `run`. `suites` is the plan's
suites in order, `[{:id kw :namespaces [ns ...] :files [path ...]}]`
(`:files` are the suite's unreadable test files). opts:
`:timestamp` (ISO local date-time string), `:cwd` (for absolute file
paths), `:omit-system-out?`, `:add-location?` (Kaocha's
`--junit-xml-omit-system-out` and `--junit-xml-add-location-metadata`).(seconds ms)Milliseconds as seconds with six decimals, independent of the locale.
Milliseconds as seconds with six decimals, independent of the locale.
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 |