Main Content

matlab.unittest.plugins.TestRunnerPlugin Class

Namespace: matlab.unittest.plugins

Plugin interface for extending test runner

Description

The TestRunnerPlugin interface enables extension of the matlab.unittest.TestRunner class. To customize a test run, create a subclass of TestRunnerPlugin and override select methods. TestRunnerPlugin provides you with a default implementation. Override only the methods that are required to achieve your customization. Every method you implement must invoke its corresponding superclass method, passing along the same instance of the PluginData class that it receives.

To run tests with this extension, add the custom TestRunnerPlugin instance to the test runner by using the addPlugin method.

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

Methods

expand all

Tips

  • To run tests in parallel with a TestRunnerPlugin instance, your plugin should subclass the matlab.unittest.plugins.Parallelizable interface. Running tests in parallel requires Parallel Computing Toolbox™.

Version History

Introduced in R2014a

expand all