Package: sltest
Test case class for MATLAB-based Simulink tests integrated with Test Manager
The sltest.TestCase
class enables authoring MATLAB®-based Simulink® tests. You define a MATLAB-based Simulink test in a .m
file that inherits from
sltest.TestCase
. Since sltest.TestCase
is a
matlab.unittest.TestCase
, the matlab.unittest.TestCase
methods
and behaviors are available when authoring a MATLAB-based Simulink test.
The sltest.TestCase
class is a handle
class.
To create a test that you can load, run, and analyze its results in the Test Manager,
create a class definition file that inherits from sltest.TestCase
. The file
contains methods that define the test case.
For debugging at the command line without having to run an sltest.TestCase
test, use the forInteractiveUse
static method to create a
TestCase
.
matlab.unittest.TestCase
| sltest.plugins.MATLABTestCaseIntegrationPlugin
| sltest.plugins.ModelCoveragePlugin
| sltest.plugins.ToTestManagerLog