Package: matlab.unittest.selectors
Selector for TestSuite elements determined by folder
The HasBaseFolder
selector filters TestSuite
array
elements determined by the name of the folder that contains the file
that defines the test class or function.
matlab.unittest.selectors.HasBaseFolder(
constructs
a selector for f
)TestSuite
elements determined by the
folder, f
, which contains the file that defines
the test class or function. You can specify the base folder as a character
vector or as an instance of the matlab.unittest.constraints.Constraint
class.
If the specified base folder, f
, is a character
vector instead of a Constraint
, the testing framework
creates an IsEqualTo
constraint with f
as
the expected value.
For a test element to be included in the suite, the file that
defines it must be contained in the specified base folder. For test
classes defined in packages, the base folder is the parent of the
top-level package folder. The base folder never contains any folders
that start with '+'
or '@'
.
|
Condition the base folder must satisfy to be included in the
test suite, specified as an instance of the |
Value. To learn how value classes affect copy operations, see Copying Objects.
fromClass
| fromFile
| fromFolder
| fromMethod
| fromPackage
| matlab.unittest.selectors
| selectIf