matlab.unittest.TestSuite.fromMethod
Class: matlab.unittest.TestSuite
Package: matlab.unittest
Create TestSuite
array from single
test method
Syntax
Description
creates
a suite
= matlab.unittest.TestSuite.fromMethod(testClass
,testMethod
)TestSuite
array from the test class described by testClass
and
the test method described by testMethod
and returns
it in suite
.
creates
a suite
= matlab.unittest.TestSuite.fromMethod(testClass
,testMethod
,s
)TestSuite
array from all of the Test
methods
contained in testMethod
that satisfy the conditions
specified by the selector, s
.
creates a suite
= matlab.unittest.TestSuite.fromMethod(___,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.
Input Arguments
|
Class describing the test methods, specified as a |
|
Test method, specified by either the |
|
Selector, specified as an instance of a class from the |
Name-Value Arguments
| Array of |
|
Name of the parent of the top-level package folder that contains the
file defining the test class or function, specified as a string array,
character vector, or cell array of character vectors. This argument
filters |
| Name of the suite element, specified as a string array, character vector, or cell array of
character vectors. This argument filters
|
|
Name of a test class 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 a parameter used by the test suite element, specified as a string array, character vector, or cell array of character vectors. MATLAB® generates parameter names based on the test class property that defines the parameters:
The |
|
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
|
Output Arguments
|
Set of tests, specified as a |
Examples
Tips
Version History
Introduced in R2013aSee Also
TestRunner
| fromClass
| fromPackage
| matlab.unittest.selectors