matlab.unittest.selectors.HasProcedureName Class
Namespace: matlab.unittest.selectors
Select TestSuite
array elements by procedure
name
Description
The matlab.unittest.selectors.HasProcedureName
class provides a
selector for filtering the test suite based on the procedure name.
Construction
selector = matlab.unittest.selectors.HasProcedureName(
creates a selector that selects name
)TestSuite
array elements that have the
specified procedure name.
For a Test
element to be included in the filtered test suite, the
procedure name of the Test
element must match the specified name or
satisfy the specified constraint.
Input Arguments
Properties
Copy Semantics
Value. To learn how value classes affect copy operations, see Copying Objects.
Examples
Alternatives
Use the HasProcedureName
selector for maximum flexibility to create
test suites from procedure names. Alternatively, at the time of test suite creation, you
can filter the test suite using the ProcedureName
name-value
argument. For example, the following lines of code are functionally equivalent.
s = matlab.unittest.TestSuite.fromClass(?ExampleTest,"ProcedureName","Test1"); s = testsuite("ExampleTest.m","ProcedureName","Test1");
Version History
Introduced in R2017a