Running tests

Use HCL OneTest API to run tests with command-line and Ant APIs.

JUnit style output

JUnit style results output is available for test.

The junitDir option specifies the path to write a JUnit style report to on completion of the run. Here is an example of the contents of such a file.
<?xml version="1.0" encoding="UTF-8"?>
<testsuites disabled="0" errors="0" failures="0" name="PassSuite" tests="1" time="0.0">
<testsuite tests="1" disabled="0" errors="0" failures="0" time="0.204" id="0" name="Scenario">
<testcase classname="Tests.Pass" name="Pass-0000001" time="0.04">
<system-out>
[2021-02-19T11:37:49.124] Initializing...
[2021-02-19T11:37:49.126] Using environment: IBM
[2021-02-19T11:37:49.127] - - - - Starting main steps - - - -
[2021-02-19T11:37:49.130] Pass: This passes!
[2021-02-19T11:37:49.154] 1 iteration(s) completed successfully
Logging summary: Info (0), Warnings (0), Errors (0)
Overall status:SUCCESSFUL
</system-out><system-err></system-err></testcase></testsuite></testsuites>