@@ -198,8 +198,27 @@ described in [Coverage](https://www.utplsql.org/utPLSQL/latest/userguide/coverag
198198| ` includeObjectExpr ` | Regular expression for the names of objects to include |
199199| ` excludeObjectExpr ` | Regular expression for the names of objects to exclude |
200200
201- The regular expression filters need a utPLSQL version that supports them. See
202- [ Coverage reporting options] ( https://www.utplsql.org/utPLSQL/latest/userguide/coverage.html#coverage-reporting-options ) .
201+ The plugin passes these values unchanged to utPLSQL, which defines their exact semantics. See
202+ [ Filtering objects in coverage reports] ( https://www.utplsql.org/utPLSQL/latest/userguide/coverage.html#filtering-objects-in-coverage-reports )
203+ in the utPLSQL documentation. The points that matter most in practice:
204+
205+ * The ` *Expr ` parameters are regular expressions, matched case-insensitively. They are matched against the schema
206+ name (` *SchemaExpr ` ) or the object name ** without** the schema (` *ObjectExpr ` ). Use ` ^ ` and ` $ ` to anchor them,
207+ otherwise any partial match counts (` APP ` also matches ` MY_APP_TEST ` ).
208+ * If ` includeSchemaExpr ` or ` includeObjectExpr ` is set, utPLSQL ignores ` includeObject ` . All exclude parameters are
209+ always applied and can be combined.
210+ * utPLSQL ignores all include/exclude filters when file mappings are in use, that is when the plugin finds files for
211+ ` sources ` (explicitly configured, or in the default ` src/main/plsql ` directory). See
212+ [ Mapping project files to database objects] ( #mapping-project-files-to-database-objects ) . Use the filters when
213+ your project does not provide source files to map.
214+ * Blank values are ignored.
215+
216+ Example: report coverage of all packages in the ` APP ` schema except those ending in ` _TMP ` :
217+
218+ ``` xml
219+ <includeSchemaExpr >^APP$</includeSchemaExpr >
220+ <excludeObjectExpr >_TMP$</excludeObjectExpr >
221+ ```
203222
204223### Mapping project files to database objects
205224
@@ -466,7 +485,10 @@ The plugin's integration tests double as examples, in
466485| ` --ora-stuck-timeout ` | ` oraStuckTimeout ` |
467486| ` -include ` | ` includeObject ` |
468487| ` -exclude ` | ` excludeObject ` |
469- | not available | ` includeSchemaExpr ` , ` excludeSchemaExpr ` , ` includeObjectExpr ` , ` excludeObjectExpr ` |
488+ | ` -include-schema-expr ` | ` includeSchemaExpr ` |
489+ | ` -exclude-schema-expr ` | ` excludeSchemaExpr ` |
490+ | ` -include-object-expr ` | ` includeObjectExpr ` |
491+ | ` -exclude-object-expr ` | ` excludeObjectExpr ` |
470492| not available | ` skipUtplsqlTests ` |
471493| ` --coverage-schemes ` | not available |
472494| ` -t ` , ` --timeout ` | not available |
0 commit comments