matlab.unittest.fixtures.PathFixture Class
Namespace: matlab.unittest.fixtures
Superclasses: matlab.unittest.fixtures.Fixture
Fixture for adding folders to the MATLAB path
Description
The matlab.unittest.fixtures.PathFixture
class provides a fixture for
adding folders to the MATLAB® path. When the testing framework sets up the fixture, the fixture adds the
specified folders to the path. When the framework tears down the fixture, the fixture restores
the path to its original state.
The matlab.unittest.fixtures.PathFixture
class is a handle
class.
Creation
Description
fixture = matlab.unittest.fixtures.PathFixture(
creates a fixture for adding the specified folders to the path.folders
)
fixture = matlab.unittest.fixtures.PathFixture(
sets additional options using one or more name-value arguments. For example,
folders
,Name,Value
)fixture =
matlab.unittest.fixtures.PathFixture("myFolder","IncludingSubfolders",true)
creates a fixture that adds myFolder
and all of its subfolders to the
path.
Input Arguments
Properties
Examples
Version History
Introduced in R2013b