Main Content
run
Class: matlab.unittest.TestCase
Namespace: matlab.unittest
Run tests corresponding to test case
Description
result = run(
runs all the
testCase
)Test
methods of the class defining testCase
and
returns the result of the test run as a matlab.unittest.TestResult
array, where each TestResult
object
corresponds to a Test
method.
The run
method is a convenience method for interactive experimentation
with TestCase
subclasses. It runs the tests by using a TestRunner
instance that is configured for text output. The text output includes
test run progress as well as diagnostics in the event of test failures.
Input Arguments
Examples
Version History
Introduced in R2013a