addSimulinkTestResults
Syntax
addSimulinkTestResults(runner)
addSimulinkTestResults(runner,'ExportToFile',filename)
Description
addSimulinkTestResults(
enables pushing
test results from MATLAB® to integrate them with Simulink® Test Manager. runner
)addSimulinkTestResults
is a method of the matlab.unittest.TestRunner
class. Use addSimulinkTestResults
for
tests that you run using the test runner, including MATLAB-based Simulink tests.
addSimulinkTestResults
adds a set of plugins to a
matlab.unittest.TestRunner
object. The added plugins are:
sltest.plugins.MATLABTestCaseIntegrationPlugin
— Adds simulation and test results to the Simulink Test Manager for MATLAB-based Simulink tests.sltest.plugins.TestManagerResultsPlugin
— Captures Simulink Test Manager results and MATLAB test Results, and allows exporting test results from the Test Manager.matlab.unittest.DiagnosticsOutputPlugin
— Adds diagnostics output to the Logs section of the Test Manager. To include log information, seesltest.plugins.ToTestManagerLog
.
addSimulinkTestResults(
enables exporting test results to an MLDATX file with the specified
runner
,'ExportToFile',filename
)filename
. Load this file at the MATLAB command line to view the test
results.
Note
addSimulinkTestResults
is not supported for parallel
workflows.
Input Arguments
Examples
Version History
Introduced in R2021a