You can increase the scope of your testing by generating test cases for all the subsystems in your model. You can also set up schedulers for certain model architectures, such as export-function models. To run MATLAB and Simulink tests together, run Simulink Test™ test cases using the MATLAB Unit Test Framework. Generate continuous integration-compatible results using MATLAB Unit Test plugins.
matlab.unittest.TestSuite | Class for grouping tests to run |
matlab.unittest.TestRunner | Class for running tests in matlab.unittest framework |
matlab.unittest.plugins Package | Summary of classes in MATLAB Plugins Interface |
sltest.plugins.ModelCoveragePlugin | Collect model coverage using the MATLAB Unit Test framework |
sltest.plugins.TestManagerResultsPlugin | Generate enhanced test results with the MATLAB Unit Test framework |
sltest.plugins.coverage.CoverageMetrics | Specify coverage metrics for tests run with MATLAB Unit Test framework |
sltest.plugins.coverage.ModelCoverageReport | Specify model coverage report details for tests run with MATLAB Unit Test |
Test Models Using MATLAB Unit Test
Test integration with MATLAB test scripts.
Output Results for Continuous Integration Systems
How set up model tests that output results and coverage compatible with continuous integration systems such as Jenkins™.
Automatically Create a Set of Test Cases
Create a set of test cases that correspond to test harnesses and Signal Editor blocks contained in a model.