Main Content
log
Class: matlab.unittest.TestCase
Namespace: matlab.unittest
Record diagnostic information during test execution
Syntax
log(testCase,diagnostic)
log(testCase,v,diagnostic)
Description
log(
logs the supplied diagnostic. The log method provides a means for tests to log information during their execution. The testing framework displays logged messages only if you configure it to do so by adding an appropriate plugin, such as the testCase
,diagnostic
)matlab.unittest.plugins.LoggingPlugin
.
log(
logs the diagnostic at the specified verbosity level, testCase
,v
,diagnostic
)v
.
Input Arguments
Examples
Version History
Introduced in R2014b