Main Content

Coverage filter filename

Filename of coverage filter

Model Configuration Pane: Coverage

Description

The Coverage filter filename parameter specifies the filter file to attach to the coverage data. You can use the filter file to exclude or justify model objects or coverage outcomes from coverage analysis.

You can create filter rules from the coverage report, from the Coverage Results Explorer, or by using the command-line API. You can filter by individual block ID, for blocks of the same type, by decisions, conditions, and outcomes of a block, and more. You can also filter S-Function C++ code by code coverage outcome.

Dependencies

To enable this parameter, select the Enable coverage analysis parameter.

Settings

no default

Enter the full path to a filter file that has the CVF extension and includes filter rules. If this parameter is empty, Simulink® Coverage™ does not apply a filter to the simulation. You can add a filter after simulation by using the Coverage Results Explorer or the filter property of the cvdata object.

Programmatic Use

Parameter: CovFilter
Type: character vector | string
Default:

Limitations

If you apply a model coverage filter that contains exclusion rules using the Coverage filter filename parameter, collect coverage, and then remove the filter after simulation, you do not see coverage that the block receives from that simulation without the filter applied. It is recommended to apply your coverage filter after simulation instead. This limitation does not apply to code coverage.

Version History

Introduced in R2010b