Please enable JavaScript to view this site.

Coverage Validator Help

Navigation: The User Interface > Settings > Data Collection Settings > Filters

Source Files Filters

Scroll Prev Top Next More

 

The Source Files Filter page allows you to specify which source files should not be hooked.

 

settings-sourcefilesfilter

 

 

Listing files to exclude or include

 

By default, Coverage Validator will try to hook all source files used by your application, but you can choose to list only those which should be included or excluded

 

Hook all files... instructionStep hook all files

 

Don't hook the files in the list... instructionStep hook everything except the files in the list

 

Only hook the files in the list... instructionStep hook only the source files listed
 

 

In the list you can include files or directories. If using directories you may want only that specific directory, or everything underneath it (the default):

 

Only match exact directory... instructionStep check this so as not to recurse into child directories

 

 

Managing the list of files

 

Add files or directories on disk:

 

Add File... instructionStep navigate to the source files instructionStep select one or more files instructionStep click Open instructionStep all the selected items are added

 

Add Dir... instructionStep navigate to the folder instructionStep select it and click OK instructionStep the folder is added to the list

 

 

Or manually enter a file:

 

Add... instructionStep a new row is added to the list instructionStep Type the file path instructionStep press Return instructionStep the file is added to the list

 

 

Remove items as normal:

 

Remove instructionStep removes selected items in the list
 

Remove All instructionStep removes all items, clearing the list

 

Alternatively, press b_del to delete selected items, and b_ctrl + b_a to select all items in the list first.

 

 

Exporting and importing

 

Since the list of source files can be quite complicated to set up, you can export the settings to a file and import them again later. This is useful when switching between different target applications.

 

Export... instructionStep choose or enter a filename instructionStep Save instructionStep outputs the filtered source files to the file
 

Import... instructionStep navigate to an existing *.cvxft file instructionStep Open instructionStep loads the filtered source files

 

note The exported file can be used with the -sourceFileFilterHookFile command line option.

 

 

Wildcards

 

All file and directory specifications can contain the * wildcard.

 

Some examples will help:

 

 Consider a project with three source directories:

 

 e:\dev\srcMain\
 e:\dev\srcCommon\
 e:\dev\srcCustom\

 

 Possible filters could be:

 

 e:\dev\src*\
 *\src*\
 *\srcC*\*

 

 

Reset All - Resets all global settings, not just those on the current page.

 

 

Reset - Resets the settings on the current page.