Main Content
matlab.unittest.TestRunner Class
Namespace: matlab.unittest
Class for running tests in unit testing framework
Description
The matlab.unittest.TestRunner
class is the fundamental API used to run a
suite of tests in the matlab.unittest
framework. It runs and operates on
TestSuite
arrays. Use this class to customize running tests.
The matlab.unittest.TestRunner
class is a handle
class.
Creation
To create a simple, silent TestRunner
object, call the
withNoPlugins
static method.
runner = matlab.unittest.TestRunner.withNoPlugins;
To create a TestRunner
object to run tests from the MATLAB® Command Window, call the withTextOutput
static method.
runner = matlab.unittest.TestRunner.withTextOutput;
To create a customized TestRunner
object, call the
addPlugin
method.
runner = matlab.unittest.TestRunner.withNoPlugins; runner.addPlugin(SomePlugin())
Properties
Methods
Examples
Version History
Introduced in R2013a