Main Content

Continuous Integration

CI-compatible tests, automation, running Simulink® tests with MATLAB® Unit Test Framework

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. See Continuous Integration for Verification of Simuliink Models for information and an example.


matlab.unittest.TestSuiteClass for grouping tests to run
matlab.unittest.TestRunnerClass for running tests in matlab.unittest framework
matlab.unittest.plugins PackageSummary of classes in MATLAB Plugins Interface
sltest.plugins.ModelCoveragePluginCollect model coverage using the MATLAB Unit Test framework
sltest.plugins.TestManagerResultsPluginGenerate enhanced test results with the MATLAB Unit Test framework
sltest.plugins.coverage.CoverageMetricsSpecify coverage metrics for tests run with MATLAB Unit Test framework
sltest.plugins.coverage.ModelCoverageReportSpecify 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.