Package: matlab.unittest.fixtures
Fixture for creating a temporary folder
The matlab.unittest.fixtures.TemporaryFolderFixture
provides
a fixture to create a temporary folder. When the testing framework
sets up the fixture, it creates the temporary folder. When it tears
down the fixture, it deletes the folder and all its contents. Before
it deletes the folder, the fixture clears from memory the definitions
of any MATLAB-files, P-files, and MEX-files that are defined in the
temporary folder.
Both the TemporaryFolderFixture
and WorkingFolderFixture
fixtures
create a temporary folder. Unlike the WorkingFolderFixture
,
the TemporaryFolderFixture
does not set the folder
as the current working folder.
matlab.unittest.fixtures.TemporaryFolderFixture
constructs
a fixture for creating a temporary folder.
matlab.unittest.fixtures.TemporaryFolderFixture(
constructs
a fixture for creating a temporary folder with additional options
specified by one or more Name,Value
)Name,Value
pair arguments.
|
Absolute path of the folder created by the fixture, specified as a character vector. |
|
Indicator of whether the temporary folder and its contents
are preserved in the event of a test failure. This property is |
|
Suffix used for temporary folder, specified as a character vector
in the |
Handle. To learn how handle classes affect copy operations, see Copying Objects.
applyFixture
| matlab.unittest.fixtures
| matlab.unittest.fixtures.CurrentFolderFixture
| matlab.unittest.fixtures.PathFixture
| matlab.unittest.fixtures.WorkingFolderFixture