Package: matlab.unittest.plugins
Plugin to help validate diagnostic code
The DiagnosticsValidationPlugin
creates a
plugin to help validate diagnostic code.
Add the DiagnosticsValidationPlugin
to the TestRunner
to
confirm that user-supplied diagnostics execute correctly. This plugin
is useful because typically tests do not encounter failure conditions.
A failure can result in unexercised diagnostic code. If a programming
error exists in this diagnostic code, the error is not evident unless
the test fails. However, at this point in the testing process, the
diagnostics for the failure condition are lost due to the error in
the diagnostic code.
Use this plugin to unconditionally evaluate the diagnostics supplied by the test writer, regardless of whether the test results in a passing or failing condition. This approach helps you to confirm that all of the diagnostic code is free from programming errors.
The diagnostic analysis can reduce the test performance and can result in very verbose text output. Be aware of these impacts before using this plugin for routine testing.
matlab.unittest.plugins.DiagnosticsValidationPlugin
creates
a plugin to help validate diagnostic code.
matlab.unittest.plugins.DiagnosticsValidationPlugin(
redirects
all the text output to the output stream, stream
)stream
.
If you do not specify the output stream, the plugin uses the default ToStandardOutput
stream.
|
Location where the plugin directs text output, specified as
an Default: |
Handle. To learn how handle classes affect copy operations, see Copying Objects.