This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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.


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.