Class: matlab.unittest.plugins.TestRunnerPlugin
Package: matlab.unittest.plugins
Extend creation of class-level TestCase
instances
tc = createTestClassInstance(
extends the creation of class-level plugin
,pluginData
)TestCase
instances, and
returns the modified TestCase
instance, tc
.
The testing framework uses the TestCase
instance to customize
running tests that belong to the same test class. The framework evaluates this
method within the scope of the runTestClass
method of
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 testing
framework passes the instance to any method with the
TestClassSetup
or TestClassTeardown
attribute.
|
Plugin object, specified as an instance of the
|
|
Class-level |
matlab.unittest.plugins.plugindata.TestContentCreationPluginData
| matlab.unittest.qualifications.ExceptionEventData
| matlab.unittest.qualifications.QualificationEventData
| matlab.unittest.TestCase
| matlab.unittest.TestRunner