Main Content

Address Missing Coverage

Filter coverage results and address gaps

To focus your coverage results on the aspects of your design that you want to test, you use filters to exclude elements or justify unexecuted objectives that you do not intend to exercise. The remaining coverage gaps might indicate insufficient testing, missing requirements, or incorrect implementation. To address these coverage gaps, you can then create additional tests, extend existing tests, refine requirements, or edit your model.


slcoverage.BlockSelectorSelect blocks for coverage filter
slcoverage.CodeSelectorSelect custom C or C++ code for coverage filter
slcoverage.FilterCoverage filter set
slcoverage.FilterRuleCreate coverage filtering rule
slcoverage.MetricSelectorSelect metric criterion for coverage filter
slcoverage.SelectorGet selectors of all types
slcoverage.SFcnSelectorSelect S-function criterion for filtering rule


Exclude or Justify Coverage Results

Coverage Filtering

Use coverage filtering to narrow the scope of your model coverage.

Create, Edit, and View Coverage Filter Rules

Workflow to filter model objects from the coverage recording.

View Applied Filters in the Coverage Results Explorer

Use the Applied filters section of the coverage Results Explorer to manage filter rules for your Simulink® model.

Model Objects to Filter from Coverage

Types of model objects you can filter from coverage recording.

Address Testing and Requirements Gaps

How to Address Coverage Testing Gaps

Determine which actions to take to address coverage testing gaps.

Perform Functional Testing and Analyze Test Coverage

Analyze functional dependencies, test model components in isolation, create suites of test cases, test models and code to achieve coverage.

Assess Coverage Results from Requirements-Based Tests

Assess extent to which requirements-based tests exercise the corresponding design.

Featured Examples