主要内容

matlab.unittest.FunctionTestCase类

包:matlab.unittest
超类:matlab.unittest.TestCase

用于基于功能的测试的TestCase

描述

FunctionTestCase类的子类TestCase中允许基于函数的测试使用确认函数的matlab.unittest.qualifications包中。对于每个测试函数,MATLAB®属性的实例FunctionTestCase类,并将其传递给测试函数。

functiontests函数构造FunctionTestCase实例,因此测试作者不需要直接构造这个类。

版本历史

在R2013b中引入