Package: matlab.unittest.plugins
Plugin interface for extending TestRunner
The TestRunnerPlugin
interface enables extension
of the matlab.unittest.TestRunner
. To customize a test
run, create a subclass of TestRunnerPlugin
and
override select methods. TestRunnerPlugin
provides
you with a default implementation, so override only methods necessary
to achieve your required customization. Every method you implement
must invoke its corresponding superclass method, passing along the
same instance of pluginData
that it receives.
To run tests with this extension, add the custom TestRunnerPlugin
to
the TestRunner
using the addPlugin
method
of TestRunner
.
createSharedTestFixture | Extend creation of shared test fixture instances |
createTestClassInstance | Extend creation of class-level TestCase instances |
createTestMethodInstance | Extend creation of method-level TestCase instances |
reportFinalizedResult | Enable reporting of finalized TestResults |
runTest | Extend running of single TestSuite element |
runTestClass | Extend running of TestSuite array from same class or function |
runTestMethod | Extend running of single Test method |
runTestSuite | Extend running of TestSuite array |
setupSharedTestFixture | Extend setting up shared test fixture |
setupTestClass | Extend setting up test class |
setupTestMethod | Extend setting up of test method |
teardownSharedTestFixture | Extend tearing down shared test fixture |
teardownTestClass | Extend tearing down of test class |
teardownTestMethod | Extend tearing down of test method |
Handle. To learn how handle classes affect copy operations, see Copying Objects.