matlab.unittest.TestRunner Class
Namespace: matlab.unittest
Class for running tests in unit testing framework
Description
The matlab.unittest.TestRunner
class is the fundamental interface used to
run a suite of tests in the unit testing framework. A TestRunner
object runs
and operates on matlab.unittest.TestSuite
arrays. Use this
class to customize running tests.
The matlab.unittest.TestRunner
class is a handle
class.
Creation
Create a TestRunner
instance using one of its static methods:
To create a default test runner, use the
matlab.unittest.TestRunner.withDefaultPlugins
method.To create a minimal test runner with no plugins, use the
matlab.unittest.TestRunner.withNoPlugins
method.To create a test runner configured for text output, use the
matlab.unittest.TestRunner.withTextOutput
method.
Alternatively, you can create a test runner by using the testrunner
function.