Main Content

matlab.unittest.diagnostics Package

Summary of classes in MATLAB Diagnostics Interface

Description

Use diagnostics to communicate relevant information in the event of a failure. To add a diagnostic message to a test case, use the diagnostic argument in any of the matlab.unittest.qualifications methods. The framework also displays diagnostic messages related to the nature of the qualification failure. The matlab.unittest.diagnostics package consists of the following classes.

Classes

matlab.unittest.diagnostics.ConstraintDiagnosticDiagnostic with fields common to most constraints
matlab.unittest.diagnostics.DiagnosticFundamental interface class for matlab.unittest diagnostics
matlab.unittest.diagnostics.DiagnosticResultResult of a diagnosed Diagnostic instance
matlab.unittest.diagnostics.DisplayDiagnosticDiagnostic using a value's displayed output
matlab.unittest.diagnostics.FigureDiagnosticDiagnostic to save specified figure
matlab.unittest.diagnostics.FileArtifactArtifact associated with a file on disk
matlab.unittest.diagnostics.FrameworkDiagnostic Diagnostic provided by testing framework
matlab.unittest.diagnostics.FunctionHandleDiagnosticDiagnostic using a function's displayed output
matlab.unittest.diagnostics.LoggedDiagnosticEventDataEvent data for DiagnosticLogged event listeners
matlab.unittest.diagnostics.ScreenshotDiagnosticDiagnostic to capture screen as image file
matlab.unittest.diagnostics.StringDiagnosticDiagnostic using string
Introduced in R2013a