Class: matlab.unittest.plugins.TestRunnerPlugin
Package: matlab.unittest.plugins
Enable reporting of finalized test results
reportFinalizedResult(
enables the reporting of finalized test results. A test result is finalized when it
is no longer possible for any qualifications to modify it. The
plugin
,pluginData
)TestRunner
might modify previously run test results when it
executes code inside TestClassTeardown
methods or tears down shared
test fixtures, for example.
A plugin that overrides the reportFinalizedResult
method is recommended for
streaming or inline reporting of test results. If you implement this method, the
TestRunner
reports the results as soon as they are finalized.
The plugin can then report test results while the test suite is still running,
rather than waiting until the entire suite is complete. The testing framework can
evaluate reportFinalizedResult
within the scope of the
runTestSuite
, runTestClass
, or
runTest
methods of
TestRunnerPlugin
.