Class: matlab.unittest.TestRunner
Package: matlab.unittest
Run all tests in TestSuite
array in
parallel
result = runInParallel(
runs
all tests in the runner
,suite
)TestSuite
array in parallel and returns
the results in a TestResult
object. The runInParallel
method
divides suite
into separate groups and uses runner
to
run each group on the current parallel pool.
Note
The runInParallel
method requires Parallel Computing Toolbox™. The testing framework might vary the order and number of
groups or which tests it includes in each group.
When you select a test suite to run in parallel, consider possible resource contention. For example, if your test fixtures access global resources, such as a shared file on the same network, the parallel sessions could conflict with each other. In such cases, consider using a prebuilt shared test fixture.
Starting in R2020b, you can create standalone applications that support
running tests in parallel (requires MATLAB®
Compiler™ and Parallel Computing Toolbox). Use the directive %#function parallel.Pool
in
your code so that MATLAB
Compiler can locate and package all of the components required for running
tests in parallel. For more information, see Compile MATLAB Unit Tests.
matlab.unittest.plugins.Parallelizable
| matlab.unittest.plugins.TestRunnerPlugin
| matlab.unittest.TestResult
| matlab.unittest.TestRunner
| matlab.unittest.TestSuite
| run (TestRunner)