@@ -780,6 +780,10 @@ ut_coverage_options(
780780 exclude_objects ut_varchar2_rows := null ,
781781 include_objects ut_varchar2_rows := null ,
782782 file_mappings ut_file_mappings := null
783+ include_schema_expr varchar2 (4000 ) := null ,
784+ include_object_expr varchar2 (4000 ) := null ,
785+ exclude_schema_expr varchar2 (4000 ) := null ,
786+ exclude_object_expr varchar2 (4000 ) := null
783787);
784788```
785789
@@ -795,11 +799,21 @@ The `a_coverage_options` parameter is used to control the scope and formatting o
795799- ` exclude_objects ` - optional - list of object names to exclude from report - data-type ` UT_VARCHAR2_ROWS `
796800- ` include_objects ` - optional - list of object names to gather coverage on - data-type ` UT_VARCHAR2_ROWS `
797801- ` file_mappings ` - optional - list of schema names to gather coverage on - data-type ` UT_FILE_MAPPINGS `
802+ - ` include_schema_expr ` - optional - regular expression to match against schema name to include in coverage - data-type ` VARCHAR2(4000) `
803+ - ` include_object_expr ` - optional - regular expression to match against object name to include in coverage - data-type ` VARCHAR2(4000) `
804+ - ` exclude_schema_expr ` - optional - regular expression to match against schema name to exclude in coverage - data-type ` VARCHAR2(4000) `
805+ - ` exclude_object_expr ` - optional - regular expression to match against object name to exclude in coverage - data-type ` VARCHAR2(4000) `
798806
799807` coverage_run_id ` parameter identifies a common coverage run. The valid value type for that parameter is RAW(32).
800808It is recommended to use ` sys_guid() ` to generate a common, unique identifier for a specific coverage run.
801809If the identifier is not unique, previous runs of coverage that used the same ` coverage_run_id ` will be aggregated to the resulting coverage report.
802810
803811For details on the meaning of ` schema_names ` , ` exclude_objects ` , ` include_objects ` , ` file_mappings ` see sections above.
804812Note that data-types of include/exclude/schema lists are different when calling ` ut.run ` vs. calling ` get_report/get_report_cursor ` .
805-
813+
814+ The order of priority is for evaluation of include/exclude is as follows.
815+ - if ` file_mappings ` is specified then all include/exclude parameters are ignored
816+ - else if ` ..._expr ` is specified then include_objects/exclude_objects parameters are ignored
817+ - else if ` schema_names ` is specified then the coverage is gathered on all object of specified schemas
818+ - else coverage is gathered on all schemas specified in paths passed to run procedure
819+ - if no paths were specified, the coverage is gathered on current schema of the session running the tests
0 commit comments