matlab.unittest.plugins.DiagnosticsValidationPlugin Class
Namespace: matlab.unittest.plugins
Superclasses: matlab.unittest.plugins.TestRunnerPlugin
, matlab.unittest.plugins.Parallelizable
Plugin to help validate diagnostic code
Description
The matlab.unittest.plugins.DiagnosticsValidationPlugin
class provides a
plugin to help validate diagnostic code. To confirm that user-supplied diagnostics execute
correctly, add a DiagnosticsValidationPlugin
instance to the test
runner.
DiagnosticsValidationPlugin
is useful because tests do not necessarily
encounter failure conditions. If a programming error exists in the diagnostic code, the error
might not become evident unless the test fails. The plugin unconditionally evaluates the
diagnostics, regardless of whether the tests pass or fail, and helps you confirm that the
diagnostic code is free of programming errors.
The matlab.unittest.plugins.DiagnosticsValidationPlugin
class is a handle
class.
Creation
Description
plugin = matlab.unittest.plugins.DiagnosticsValidationPlugin
creates a plugin to help validate diagnostic code. The plugin directs its text output to
the screen.
plugin = matlab.unittest.plugins.DiagnosticsValidationPlugin(
creates a plugin that writes its data to the specified output stream.stream
)
Input Arguments
Examples
Tips
The diagnostic analysis can reduce the testing performance and result in verbose text output. Consider these factors before using the plugin when running your tests.
Version History
Introduced in R2013a