Write Plugins to Extend TestRunner
In this section...
“Custom Plugins Overview” on page 33-113
“Extending Test Level Plugin Methods” on page 33-114
“Extending Test Class Level Plugin Methods” on page 33-114
“Extending Test Suite Level Plugin Methods” on page 33-115
Custom Plugins Overview
TestRunnerPlugin methods have three levels: Test Suite, Test Class, and Test. At each
level, you implement methods to extend the creation, setup, run, and teardown of tests or
test fixtures. The TestRunner runs these methods as shown in the figure.
Additionally, the reportFinalizedResult method enables the test runner to report
finalized test results. A test result is finalized when no remaining test content can modify
the results. The test runner determines if it invokes the reportFinalizedResult
method at each level.
The creation methods are the only set of TestRunnerPlugin methods with an output
argument. Typically, you extend the creation methods to listen for various events
Write Plugins to Extend TestRunner