Simulink Coverage

 

Simulink Coverage

Measure test coverage in models and generated code

Get Started:

Measure Model and Code Coverage

Assess completeness of your testing by measuring model elements and C/C++ code exercised during simulation.

Model Coverage

Measure how much of your design is covered by simulation testing to assess testing effectiveness and completeness. Analyze coverage collected during requirements-based testing to determine if there are any gaps in testing, missing requirements, or unintended functionality.

Code Coverage

Measure coverage for software-in-the-loop (SIL) and processor-in-the-loop (PIL) tests of code generated with Embedded Coder or for any code called within Simulink models using S-functions, custom code in Stateflow® charts, and C Caller blocks.

View coverage of code called from a C Caller block.

Coverage Metrics

Measure model and code coverage for a variety of metrics, including decision, condition, MC/DC, relational boundary, and signal range.

Select from various coverage metrics, including MC/DC.

Explore Results and Generate Reports

Accumulate and report coverage results across multiple simulation runs. Reconcile missing coverage.

Manage and View Accumulated Coverage Results

Aggregate coverage from multiple simulations. View system test coverage achieved from unit tests.

Generate Coverage Reports

Generate detailed reports that include accumulated coverage results on selected metrics. View requirements traceability details for model elements and tests.

View requirements traceability data in a coverage report. 

Reconcile Missing Coverage

Models may contain constructs that prevent full test coverage. Filtering these constructs from coverage recording and reporting lets you focus on other aspects of missing coverage that can and should be tested.

Add coverage filter rules in the Filter Editor.