matlab.unittest.TestRunner类
在其中运行测试的类matlab.unittest
框架
描述
的matlab.unittest.TestRunner
类中运行一套测试的基本APImatlab.unittest
框架。它运行并运行于TestSuite
数组。使用该类可自定义运行测试。
的matlab.unittest.TestRunner
类是一个处理
类。
创建
创造一种简单,沉默TestRunner
对象,调用withNoPlugins
静态方法。
runner = matlab.unittest. testrener . withnoplugins;
要创建TestRunner
对象从MATLAB中运行测试®命令窗口,调用withTextOutput
静态方法。
runner = matlab.unittest.TestRunner.withTextOutput;
要创建自定义的TestRunner
对象,调用addPlugin
方法。
runner = matlab.unittest. testrener . withnoplugins;runner.addPlugin (SomePlugin ())
属性
方法
例子
版本历史
在R2013a中引入