Package: matlab.unittest.selectors
Selector for TestSuite elements determined by parameterization
The HasParameter
selector filters TestSuite
array
elements determined by parameterization.
matlab.unittest.selectors.HasParameter
constructs
a selector for TestSuite
elements determined by their
parameterization. When you instantiate HasParameter
without
input arguments, the resulting TestSuite
array only
contains elements that have parameterized test methods.
matlab.unittest.selectors.HasParameter(
constructs
a selector with additional options specified by one or more Name,Value
)Name,Value
pair
arguments. The selector filters based on the name of the property
that defines a parameter, the name of the parameter, and the value
of the parameter. For an element to be selected for the TestSuite
array,
it must have at least one parameter that satisfies all the conditions.
Specify optional
comma-separated pairs of Name,Value
arguments. Name
is
the argument name and Value
is the corresponding value.
Name
must appear inside quotes. You can specify several name and value
pair arguments in any order as
Name1,Value1,...,NameN,ValueN
.
|
Name of the test class property that defines the parameter used by the test suite element,
specified as a character vector, string scalar, or
|
|
Name of the parameter used by the test suite element, specified as a character vector, string
scalar, or MATLAB® generates parameter names based on the test class property that defines the parameters:
|
|
Value of the parameter, specified as any MATLAB data type or as an instance of the
|
|
Condition that the test element’s parameter property
name must satisfy to be included in the test suite, specified as an
instance of the |
|
Condition that the test element’s parameter name must
satisfy to be included in the test suite, specified as an instance
of the |
|
Condition that the test element’s parameter property
value 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.parameters
| matlab.unittest.selectors
| selectIf