matlab.unittest.diagnostics

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:

matlab.unittest.diagnostics.ConstraintDiagnosticDiagnostics specific to matlab.unittest constraints
matlab.unittest.diagnostics.DiagnosticFundamental interface class for matlab.unittest diagnostics
matlab.unittest.diagnostics.DisplayDiagnosticDiagnostic using a value's displayed output
matlab.unittest.diagnostics.FunctionHandleDiagnosticDiagnostic using a function's displayed output
matlab.unittest.diagnostics.StringDiagnosticDiagnostic using string

The package contains the following event data classes:

matlab.unittest.diagnostics.LoggedDiagnosticEventDataEvent data for DiagnosticLogged event listeners
Was this topic helpful?