Main Content

matlab.unittest.diagnostics Namespace

Summary of classes in MATLAB diagnostics interface

Description

Use diagnostics to convey important information from tests. To associate a diagnostic message with a test, specify the diagnostic as an input to a matlab.unittest.qualifications qualification method. In addition to the diagnostics that you specify, the testing framework provides specific diagnostic information about the qualification. By default, diagnostics appear only when a qualification fails. To display diagnostics for both passing and failing qualifications, you can add a DiagnosticsOutputPlugin instance to the test runner.

Classes

The matlab.unittest.diagnostics namespace consists of the following classes.

matlab.unittest.diagnostics.ConstraintDiagnosticDiagnostic with fields common to constraints
matlab.unittest.diagnostics.FigureDiagnosticDiagnostic to save specified figure
matlab.unittest.diagnostics.FrameworkDiagnosticDiagnostic provided by testing framework
matlab.unittest.diagnostics.LoggedDiagnosticEventDataEvent data for DiagnosticLogged event listeners
matlab.unittest.diagnostics.ScreenshotDiagnosticDiagnostic to capture screen as image file

Version History

Introduced in R2013a

expand all