Kontinuierliche Integration
Sie können den Umfang Ihrer Tests erweitern, indem Sie Testfälle für alle Subsysteme in Ihrem Modell erstellen. Sie können auch Scheduler für bestimmte Modellarchitekturen einrichten, beispielsweise für Exportfunktionsmodelle. Um die MATLAB- und Simulink-Tests gemeinsam auszuführen, führen Sie Simulink Test™-Testfälle mithilfe des MATLAB Unit-Test Framework aus. Generieren Sie mithilfe von MATLAB Unit-Test-Plugins Ergebnisse, die mit kontinuierlicher Integration kompatibel sind. Weitere Informationen und ein Beispiel finden Sie unter Kontinuierliche Integration zur Verifikation von Simulink-Modellen und Develop and Integrate Software with Continuous Integration.
Klassen
matlab.unittest.TestSuite | Fundamental interface for grouping tests to run |
matlab.unittest.TestRunner | Class for running tests in unit testing framework |
matlab.unittest.plugins | 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 |
Funktionen
addModelCoverage | Enable model coverage collection for TestTask
instance (Seit R2024a) |
Themen
- Test Models Using MATLAB Unit Test
Test integration with MATLAB test scripts.
- Output Results for Continuous Integration Systems
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.