matlab.automation.diagnostics.Diagnostic class
Package: matlab.automation.diagnostics
Fundamental interface class for diagnostics (renamed from
matlab.unittest.diagnostics.Diagnostic
)
Description
The matlab.automation.diagnostics.Diagnostic
class provides an
interface that you can use to package diagnostic information. All diagnostics are
derived from the Diagnostic
interface, whether they are user-supplied
diagnostics or framework diagnostics. Classes that derive from Diagnostic
encode the diagnostic actions to be performed and produce a diagnostic result that can
be used by an automation framework, for example, the unit testing framework, and
displayed as appropriate for that framework.
When used with the testing framework, any Diagnostic
implementation can
be used directly with matlab.unittest
qualifications, which execute
the diagnostic actions and store the result to be used by the framework. As a
convenience, the framework creates appropriate Diagnostic
instances for
user-supplied diagnostics that are arrays of character vectors, strings, and function
handles. To retain good performance, these values are converted to
Diagnostic
instances only when a qualification failure occurs or when
the framework explicitly observes passing qualifications. The default test runner does
not explicitly observe passing qualifications.
Properties
|
The artifacts produced during the last diagnostic evaluation, returned as an array of artifacts. |
|
The |
Copy Semantics
Handle. To learn how handle classes affect copy operations, see Copying Objects.