Package: matlab.unittest
Class for running tests in matlab.unittest
framework
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 TestRunner
class is a sealed class; you cannot
derive classes from the TestRunner
class.
To create a simple, silent TestRunner
object,
call the static withNoPlugins
method.
runner = matlab.unittest.TestRunner.withNoPlugins
To create a TestRunner
object to run tests from
the MATLAB® Command Window, call the static withTextOutput
method.
runner = matlab.unittest.TestRunner.withTextOutput
To create a customized TestRunner
object, call
the addPlugin
method.
runner = TestRunner.withNoPlugins; runner.addPlugin(SomePlugin())
addPlugin | Add plugin to TestRunner object |
run | Run all tests in TestSuite array |
runInParallel | Run all tests in TestSuite array in
parallel |
withNoPlugins | Create simplest runner possible |
withTextOutput | Create TestRunner object for command window output |