matlab.unittest.TestSuite.fromNamespace
类: matlab.unittest.TestSuite
命名空间: matlab.unittest
语法
说明
suite = matlab.unittest.TestSuite.fromNamespace(
基于指定命名空间中的测试创建一个测试套件,并以 namespace
)matlab.unittest.TestSuite
数组形式返回测试套件。
当您调用方法来创建测试套件以及当您运行生成的测试套件时,namespace
的父文件夹必须在路径中。
suite = matlab.unittest.TestSuite.fromNamespace(___,
支持上述语法中的输入参量组合,且可使用一个或多个名称-值参量指定选项。例如,Name,Value
)suite = matlab.unittest.TestSuite.fromNamespace("myNamespace","IncludingInnerNamespaces",true)
基于指定命名空间及其任何内部命名空间中的测试创建一个测试套件。