Class: matlab.unittest.TestSuite
Package: matlab.unittest
Create TestSuite
array from all tests
in folder
creates
a suite
= matlab.unittest.TestSuite.fromFolder(folder
)TestSuite
array from all of the Test
methods
of all concrete TestCase
classes contained in folder
and
returns that array in suite
. If tests are function-based
or script-based, a Test
file is included in the TestSuite
array
if it follows the naming convention of starting or ending in the word
‘test’, which is case-insensitive. Class-based tests
do not need to follow this naming convention. The method is not recursive,
returning only those tests directly in the specified folder.
When the test suite is run, MATLAB® changes the current folder to the folder that defines the test content, and adds it to the path for the duration of the test run.
creates a suite
= matlab.unittest.TestSuite.fromFolder(___,Name,Value
)TestSuite
array
with additional options specified by one or more Name,Value
pair arguments. You can
use this syntax with any of the input arguments of the previous syntaxes.
|
Folder containing tests, specified as a character vector or
string scalar. |
|
Selector, specified as an instance of a class from the |
| Name of the folder that contains the file defining the tests, specified as a string array,
character vector, or cell array of character vectors. This argument filters
|
| Array of |
|
Indicator for whether to include tests from any |
| Name of the suite element, specified as a string array, character vector, or cell array of
character vectors. This argument filters
|
| Name of a parameter used by the test suite element, specified as a string array, character
vector, or cell array of character vectors. This argument filters
|
| Name of a property that defines a parameter used by the test suite element, specified as a
string array, character vector, or cell array of character vectors. This argument
filters |
|
Name of the test procedure, specified as a string array, character vector, or cell array of
character vectors. This argument filters
In a class-based test, the |
| Name of the class that the test class derives from, specified as a string array, character
vector, or cell array of character vectors. This argument filters
|
|
Name of a test tag used by the test suite element, specified as a string array, character
vector, or cell array of character vectors. This argument filters
|
|
Set of tests, specified as a |