createTestClassInstance
Class: matlab.unittest.plugins.TestRunnerPlugin
Namespace: matlab.unittest.plugins
Extend creation of class-level TestCase instances
Description
tc = createTestClassInstance(
extends the creation of class-level plugin,pluginData)TestCase instances and returns the
modified TestCase instance. 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.
A typical implementation of this method is to add listeners to various events
originating from the class-level instance. Because the TestCase class 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.
Input Arguments
Examples
Version History
Introduced in R2014a