Plugin interface for extending TestRunner
TestRunnerPlugin interface enables extension of the
matlab.unittest.TestRunner. To customize a test run, create a
TestRunnerPlugin and override select methods.
TestRunnerPlugin provides you with a default implementation. Override
only the methods that are required to achieve your customization. Every method you
implement must invoke its corresponding superclass method, passing along the same
pluginData that it receives.
To run tests with this extension, add the custom
TestRunnerPlugin to the
TestRunner by using the
addPlugin method of
|createSharedTestFixture||Extend creation of shared test fixture instances|
|createTestClassInstance||Extend creation of class-level |
|createTestMethodInstance||Extend creation of method-level |
|reportFinalizedResult||Enable reporting of finalized test results|
|reportFinalizedSuite||Extend reporting of finalized |
|runSession||Extend running of test session|
|runTest||Extend running of single |
|runTestClass||Extend running of |
|runTestMethod||Extend running of single test method|
|runTestSuite||Extend running of |
|setupSharedTestFixture||Extend setting up shared test fixture|
|setupTestClass||Extend setting up test class|
|setupTestMethod||Extend setting up test method|
|teardownSharedTestFixture||Extend tearing down shared test fixture|
|teardownTestClass||Extend tearing down test class|
|teardownTestMethod||Extend tearing down test method|
Handle. To learn how handle classes affect copy operations, see Copying Objects.
To run tests in parallel with a
your plugin should subclass the
matlab.unittest.plugins.Parallelizable interface. Running
tests in parallel requires Parallel Computing Toolbox™.