run
类: matlab.unittest.TestSuite
命名空间: matlab.unittest
使用默认测试运行器运行测试套件
说明
results = run( 运行使用默认测试运行器的测试套件,它等效于测试框架在您调用 suite)runtests 函数时默认配置的运行器。该方法将测试运行的结果以 matlab.unittest.TestResult 数组形式返回,其中每个 TestResult 对象对应于 suite 的一个元素。
输入参数
示例
提示
run方法非常方便。例如,results = run(suite)在功能上等效于以下代码。runner = testrunner; results = run(runner,suite)
版本历史记录
在 R2013a 中推出