Author Requirements-Based, Back-to-Back, and Regression Tests
Use test templates to create simulation, baseline, and equivalence tests. Define test data with multiple formats: MAT-files, Excel spreadsheets, MATLAB® code, graphically using Signal Editor blocks, programmatic test input sequences using the Test Sequence block, or automatically generate test inputs using Simulink Design Verifier™.
Automate Testing with Continuous Integration
Increase throughput for large test suites, iterations, and large Simulink® models by using parallel execution. Tests can be executed individually or in a batch to automate testing and set up a standardized testing environment. Run model tests using MATLAB Unit Test, enabling you to integrate within continuous integration (CI) systems such as Jenkins™.
Execute Tests, View Results, and Debug
Execute and debug tests in normal simulation mode, accelerator mode, rapid accelerator model, software-in-the-loop (SIL) mode, processor-in-the-loop (PIL) mode, or real-time hardware-in-the-loop (HIL) real-time mode with Simulink Real-Time™.
Isolate Components for Unit Testing
Test harnesses provide an integrated simulation environment that isolates the Simulink model or model component. Run test-specific simulations on models or model components while synchronizing design changes between the model and the test harness. With observers, debug and test Simulink signals without adding ports, blocks, connections, or interfaces that are only for testing.
Generate Test Reports and Archive Test Results
Simulink Test displays a summary and details of tests that have been executed. To share the results with others, export test results to a file, which can be reviewed later in the test manager. Generate reports that include the test outcome, test summary, and any criteria used for test comparisons. These reports can be customized using Simulink Report Generator™.
Measure Model and Code Coverage
Coverage metrics, such as decision, condition, modified condition/decision coverage (MC/DC), and relational boundary coverage, can be collected with Simulink Coverage™. From the coverage results in the test manager, generate test cases for missing coverage by using Simulink Design Verifier.
“Model-Based Design helped us apply the design and verification methods required by ISO 26262, including back-to-back verification and test coverage assessment. In particular, the automated test cases and reports in Simulink Test contributed significantly to reduced testing efforts.”Jeongwon Sohn, LG Electronics