Class: matlab.unittest.plugins.TestRunnerPlugin
Package: matlab.unittest.plugins
Extend creation of class-level TestCase instances
tc = createTestClassInstance(plugin,pluginData)
tc = createTestClassInstance(
extends
the creation of class-level plugin
,pluginData
)TestCase
instances,
and returns the modified TestCase
instance, tc
.
The test framework uses the TestCase
instance to
customize running tests that belong to the same test class. The test
framework evaluates this method within the scope of the runTestClass
method
of the TestRunnerPlugin
. A typical implementation
of this method is to add listeners to various events originating from
the class level instance. Since the TestCase
inherits
from the handle
class, add listeners by calling
the addlistener
method from within the createTestClassInstance
method.
For each class, the test framework passes the instance to any method
with the TestClassSetup
or TestClassTeardown
attribute.
|
Instance of |
|
Class-level |
matlab.unittest.TestCase
| matlab.unittest.TestRunner
| matlab.unittest.plugins.plugindata.TestContentCreationPluginData
| matlab.unittest.qualifications.ExceptionEventData
| matlab.unittest.qualifications.QualificationEventData