Package: matlab.unittest
Class for grouping tests to run
The matlab.unittest.TestSuite
class is the fundamental
interface used to group and run a set of tests in the unit test framework.
The matlab.unittest.TestRunner
object can only run
arrays of TestSuite
objects.
TestSuite
arrays are created using static methods
of the TestSuite
class. These methods may return subclasses
of the TestSuite
class depending on the method call
and context.
fromClass | Create suite from TestCase class |
fromFile | Create TestSuite array from test file |
fromFolder | Create TestSuite array from all tests
in folder |
fromMethod | Create TestSuite array from single
test method |
fromName | Create Test object from name of test
element |
fromPackage | Create TestSuite array from all tests
in package |
run | Run TestSuite array using TestRunner object
configured for text output |
selectIf | Select test suite elements that satisfy conditions |
sortByFixtures | Reorder test suite based on shared fixtures |
Test
| TestResult
| TestRunner