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.
|Select blocks for coverage filter|
|Select custom C or C++ code for coverage filter|
|Coverage filter set|
|Create coverage filtering rule|
|Select metric criterion for coverage filter|
|Get selectors of all types|
|Select S-function criterion for filtering rule|
Use coverage filtering to narrow the scope of your model coverage.
Workflow to filter model objects from the coverage recording.
Use the Applied filters section of the coverage Results Explorer to manage filter rules for your Simulink® model.
Types of model objects you can filter from coverage recording.
Determine which actions to take to address coverage testing gaps.
Analyze functional dependencies, test model components in isolation, create suites of test cases, test models and code to achieve coverage.
Assess extent to which requirements-based tests exercise the corresponding design.