Main Content

matlab.unittest.plugins.Parallelizable Class

Namespace: matlab.unittest.plugins

Interface for plugins that support running tests in parallel

Description

The matlab.unittest.plugins.Parallelizable class is an interface for TestRunnerPlugin instances that support dividing a test suite into groups and running each group on the current parallel pool. Parallelizable enables you to transfer data from MATLAB® workers to the MATLAB client. Additionally, you can use Parallelizable to specify the circumstances in which a plugin cannot be used to run tests in parallel.

To create a plugin that supports running tests in parallel, subclass both the TestRunnerPlugin and Parallelizable classes. A TestRunner instance enhanced by a parallelizable plugin can run tests in both serial and parallel modes. To run tests in parallel, which requires Parallel Computing Toolbox™, invoke the runInParallel method on the test runner.

The matlab.unittest.plugins.Parallelizable class is a handle class.

Methods

expand all

Version History

Introduced in R2019b