Skip to content

Commit 0c57a9c

Browse files
committed
Initial checkin for exclude objects regex.
1 parent 62716ae commit 0c57a9c

File tree

8 files changed

+278
-56
lines changed

8 files changed

+278
-56
lines changed

docs/userguide/coverage.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,19 @@ exec ut.run('unit_test_schema', ut_coverage_html_reporter(), a_coverage_schemes
128128

129129
#### Filtering objects in coverage reports
130130

131-
There are two options that can be used to narrow down the scope of coverage report:
132-
- `a_include_objects` - list of `[object_owner.].object_name` to be included in the coverage report
131+
There are six options that can be used to narrow down the scope of coverage report:
132+
- `a_include_objects` - list of `[object_owner.].object_name` to be included in the coverage report.
133133
- `a_exclude_objects` - list of `[object_owner.].object_name` to be excluded from the coverage report
134+
- `a_include_schema_expr` - string of regex expression of schemas to be included in the coverage report. It will override `a_include_objects`
135+
- `a_include_object_expr` - string of regex expression of objects ( no schema names included ) to be included in the coverage report. It will override `a_include_objects`
136+
- `a_exclude_schema_expr` - string of regex expression of schemas to be excluded from the coverage report. It will override `a_exclude_objects`
137+
- `a_exclude_object_expr` - string of regex expression of objects to be excluded from the coverage report. It will override `a_exclude_objects`
134138

135-
You may specify both _include_ and _exclude_ object lists to gain more control over what needs to be included / excluded from the coverage report.
139+
You may specify both _include_ and _exclude_ options to gain more control over what needs to be included / excluded from the coverage report.
136140

137141
The object owner is optional in the object list.
138142
If you do not provide an object owner, the _include_/_exclude_ list will be considered for every schema used for coverage gathering (as described above).
139143

140-
141144
Example: Limiting coverage by object name, for tested code located in the same schema as the unit tests.
142145
```sql
143146
exec ut.run(ut_varchar2_list('user_1','user_2'), ut_coverage_html_reporter(), a_include_objects=>ut_varchar2_list('award_bonus'));

0 commit comments

Comments
 (0)