matlab.unittest.fixtures.PathFixture 类
命名空间: matlab.unittest.fixtures
超类: matlab.unittest.fixtures.Fixture
用于将文件夹添加到 MATLAB 路径的脚手架
描述
matlab.unittest.fixtures.PathFixture
类提供了用于向 MATLAB® 路径添加文件夹的脚手架。当测试框架设置脚手架时,该脚手架会将当前文件夹添加到路径中。当框架拆解脚手架时,脚手架将路径还原到其原始状态。
matlab.unittest.fixtures.PathFixture
类是一个 handle
类。
创建对象
描述
fixture = matlab.unittest.fixtures.PathFixture(
使用一个或多个名称-值参数设置其他选项。例如,folders
,Name,Value
)fixture = matlab.unittest.fixtures.PathFixture("myFolder","IncludingSubfolders",true)
创建一个脚手架,该脚手架将 myFolder
及其所有子文件夹添加到该路径中。
输入参数
属性
示例
版本历史记录
在 R2013b 中推出