Package: matlab.unittest.fixtures
Fixture for adding a folder to the MATLAB path
The PathFixture
class provides a fixture
for adding a folder to the MATLAB® path. When the test framework
sets up the fixture, it adds the specified folder to the path. When
the test framework tears down the fixture, it restores the MATLAB path
to its previous state.
matlab.unittest.fixtures.PathFixture(
constructs
a fixture for adding a folder to the MATLAB path. When the test
framework sets up the fixture, it adds folder
)folder
to
the path. When it tears down the fixture, it restores the MATLAB path
to its previous state.
matlab.unittest.fixtures.PathFixture(
constructs
a fixture with additional options specified by one or more folder
,Name,Value
)Name,Value
pair
arguments. For example, matlab.unittest.fixtures.PathFixture('myFolder','IncludingSubfolders',true)
constructs
a fixture that adds myFolder
and any of its subfolders
to the path.
|
Folder to add to the MATLAB path, specified as a character
vector in the |
|
Indicator to include subfolders of |
|
Indicator of where on the path to add folder, specified as |
Handle. To learn how handle classes affect copy operations, see Copying Objects.