Package: sltest.plugins
Add simulation and test results for MATLAB-based Simulink tests to Test Manager
The sltest.plugins.MATLABTestCaseIntegrationPlugin
adds simulation and test
results to the Test Manager test case results for MATLAB®-based Simulink® tests. A MATLAB-based Simulink test is a MATLAB code (.m
)
file that is derived from the sltest.TestCase
class. When you add this
plugin to a TestRunner
object and run the simulation, these results are
added to the Test Manager:
Test results are created for each test suite element of an
sltest.TestCase
class when you run the test case at the MATLAB
command line.
By default, criteria results are added for suite element failures from the
fatalAssertSignalsMatch
, assertSignalsMatch
,
assumeSignalsMatch
, and verifySignalsMatch
qualification methods. A comparison run for these failures is added under the
corresponding test case result. For passing comparison runs, add the
matlab.unittest.plugins.DiagnosticsOutputPlugin
with passing
diagnostics enabled to the TestRunner
.
Simulation results, which are created using the simulate
method,
are added to the corresponding test case results.
The sltest.plugins.MATLABTestCaseIntegrationPlugin
class is a handle
class.
To use the MATLABTestCaseIntegrationPlugin
, add it to the
TestRunner
object:
import sltest.plugins.MATLABTestCaseIntegrationPlugin testRunner.addPlugin... (sltest.plugins.MATLABTestCaseIntegrationPlugin());
assertSignalsMatch
| assumeSignalsMatch
| fatalAssertSignalsMatch
| matlab.unittest.plugins.DiagnosticsOutputPlugin
| simulate
| sltest.plugins.ModelCoveragePlugin
| sltest.plugins.ToTestManagerLog
| sltest.TestCase
| verifySignalsMatch