invocation

Returns a test configuration which specifies an invocation mode for all TestSuites of a TestElement hierarchy.

Notes:

  • Setting mode to TestConfig.Invocation.Concurrent will disable a TestScope for the TestElement hierarchy. This is necessary to protect against hangups caused by thread starvation (see issue #49).

  • On platforms whose test infrastructure relies on sequential execution (like Android), setting mode to TestConfig.Invocation.Concurrent will be quietly ignored. This behavior is intentional to guarantee safe execution on all platforms and still allow cross-platform configurations to request execution to be as concurrent as possible.

Child elements inherit this mode, unless configured otherwise.