Package: matlab.unittest.plugins
Plugin to record diagnostics on test results
The DiagnosticsRecordingPlugin
enables programmatic access to the
diagnostic information from unit tests.
This class creates a plugin to record diagnostics on test results. The
TestRunner
records these diagnostics as
DiagnosticRecord
arrays in the Details
property
of the TestResult
object. Each element of the
DiagnosticRecord
array corresponds to an event in an individual
test.
If you run tests with the runtests
function, the
testrunner
function with no input, or the run
method of TestSuite
or TestCase
, the test framework uses
this plugin by default. Also, if you run performance tests with the
runperf
function or the run
method of
TimeExperiment
, the test framework uses this plugin by
default.
matlab.unittest.plugins.DiagnosticsRecordingPlugin
creates a
plugin to record diagnostics on test results. By default, the
DiagnosticsRecordingPlugin
records qualification failures and logged
events.
matlab.unittest.plugins.DiagnosticsRecordingPlugin(
creates a plugin with additional options specified by one or more
Name,Value
)Name,Value
pair arguments. Name
must appear
inside single quotes (''
). You can specify several name-value pair
arguments in any order as Name1,Value1,...,NameN,ValueN
.
Handle. To learn how handle classes affect copy operations, see Copying Objects.
matlab.unittest.plugins
| matlab.unittest.plugins.diagnosticrecord
| matlab.unittest.plugins.diagnosticrecord.DiagnosticRecord
| matlab.unittest.plugins.DiagnosticsOutputPlugin
| matlab.unittest.plugins.LoggingPlugin