matlab.unittest.TestSuite.fromFile
Class: matlab.unittest.TestSuite
Package: matlab.unittest
Create TestSuite
array from test file
Syntax
Description
creates a suite
= matlab.unittest.TestSuite.fromFile(___,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
|
Absolute or relative path to the test file, specified as a character vector or string scalar. |
|
Selector, specified as an instance of a class in the |
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and enclose
Name
in quotes.
|
External parameters, specified as an array of |
| 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
|
| Names of the files and folders that contain source code, specified as a string vector, character vector, or cell vector of character vectors. This argument filters the test suite. For the testing framework to include a test in the filtered suite, the file that defines the test must depend on the specified source code. If none of the test files depend on the source code, an empty test suite is returned. The specified value must represent at least one existing file with a
You must have MATLAB
Test installed to use Example: Example: |
| 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 |