matlab.unittest.plugins.QualifyingPlugin 类
包: matlab.unittest.plugins
超类: matlab.unittest.plugins.TestRunnerPlugin
执行系统范围内验证的插件的接口
说明
使用有别于测试内容的限定插件来生成测试失败。插件级别的验证会很有用,因为您可以避免在每个测试中重复相同的验证。您只需将该插件添加到特定测试会话的测试运行程序,即可决定对测试套件定期应用系统范围的验证。
QualifyingPlugin
接口使测试运行程序插件作者能够实现对测试套件执行系统范围验证的插件。在以下继承的方法中,可以执行验证、假设、断言和致命断言:
setupTestClass
teardownTestClass
setupTestMethod
teardownTestMethod
在以下继承的方法中,只能执行假设、断言和致命断言:
setupSharedTestFixture
teardownSharedTestFixture
方法
assertUsing | 断言值满足给定约束 |
assumeUsing | 假设值满足给定约束 |
fatalAssertUsing | 致命断言值满足给定约束 |
verifyUsing | 确认值满足给定约束 |
继承的方法
createSharedTestFixture | 扩展共享测试脚手架实例的创建 |
createTestClassInstance | 扩展类级别 TestCase 实例的创建 |
createTestMethodInstance | 扩展方法级别 TestCase 实例的创建 |
reportFinalizedResult | 为最终化测试结果生成报告 |
reportFinalizedSuite | 扩展为最终化的 TestSuite 数组生成的报告 |
runSession | 扩展测试会话的运行 |
runTest | 扩展单个 Test 元素的运行 |
runTestClass | 从同一个类或函数扩展 Test 元素的运行 |
runTestMethod | 扩展单个测试方法的运行 |
runTestSuite | 扩展 TestSuite 数组的运行 |
setupSharedTestFixture | 扩展共享测试脚手架的设置 |
setupTestClass | 扩展测试类的设置 |
setupTestMethod | 扩展设置测试方法 |
teardownSharedTestFixture | 扩展共享测试脚手架的拆解 |
teardownTestClass | 扩展拆解测试类 |
teardownTestMethod | 扩展拆解测试方法 |
复制语义
句柄。要了解句柄类如何影响复制操作,请参阅复制对象。
示例
版本历史记录
在 R2015b 中推出