AsyncTestSuite#

class omni.kit.test.AsyncTestSuite(tests=())#

Bases: TestSuite

A test suite is a composite test consisting of a number of TestCases.

For use, create an instance of TestSuite, then add test case instances. When all tests have been added, the suite can be passed to a test runner, such as TextTestRunner. It will run the individual test cases in the order in which they were added, aggregating the results. When subclassing, do not forget to call the base class constructor.

Methods

run(result[, debug])

Run the test suite asynchronously.

__init__(tests=())#
async run(result, debug=False)#

Run the test suite asynchronously.

Parameters:
  • result (Any) – Container for aggregating test outcomes.

  • debug (bool) – If True, run tests in debug mode using the debug method.

Returns:

The result object after the test suite execution.

Return type:

Any