Class: matlab.unittest.plugins.TestRunnerPlugin
Package: matlab.unittest.plugins
Extend creation of method-level TestCase instances
tc = createTestMethodInstance(plugin,pluginData)
tc = createTestMethodInstance(
extends
the creation of method-level plugin
,pluginData
)TestCase
instances,
and returns the modified TestCase
instance, tc
.
The test framework evaluates this method within the scope of the runTest
method
of the TestRunnerPlugin
. A typical implementation
of this method is to add listeners to various events originating from
the method level instance. Since the TestCase
inherits
from the handle
class, add listeners by calling
the addlistener
method from within the createTestMethodInstance
method.
The test framework creates instances for every element of the matlab.unittest.Test
array
and passes each instance to its corresponding Test
methods
and to any method with the TestMethodSetup
or TestMethodTeardown
attribute.
|
Instance of |
|
Method-level |
matlab.unittest.TestCase
| matlab.unittest.TestRunner
| matlab.unittest.plugins.TestRunnerPlugin.createTestClassInstance
| matlab.unittest.plugins.plugindata.TestContentCreationPluginData
| matlab.unittest.qualifications.ExceptionEventData
| matlab.unittest.qualifications.QualificationEventData