Class: matlab.unittest.TestCase
Package: matlab.unittest
Dynamically add teardown routine to TestCase
instance
addTeardown(testCase,tearDownFcn)
addTeardown(testCase,tearDownFcn,arg1,...,argN)
addTeardown(
adds the testCase
,tearDownFcn
)tearDownFcn
function handle that defines fixture teardown
code to the testCase
instance.
The function handle executes in the scope where it is registered. This scope can be a test class, a test method, or a shared fixture. The teardown code is executed in the reverse order to which it is added. This is a last-in, first-out (LIFO) execution order policy. To restore the correct pre-test state, the function handle is dynamically invoked with the conclusion of the scope.
addTeardown(
provides
input arguments to the testCase
,tearDownFcn
,arg1,...,argN
)tearDownFcn
.
|
|
|
Function, specified as a function handle, that defines the fixture teardown code |
|
Input arguments, 1 through N (if any), required by |