Description
While trying new build pipeline with Azure on out uPLSQL-demo-project, I've decided to switch to latest utPLSQL-cli.
It was then, when I've noticed that coverage is not getting reported on project files.
At first I thought that it's related to build configuration itself but after a bit of unsuccessful debugging I've decided to switch to utPLSQL-cli v3.1.6
On utPLSQL-cli v 3.1.6 coverage is generated without issues.
The reason for missing coverage is missing/invalid files mapping.
Seems like regression in v3.1.7.
Worth noting is that utPLSQL-core is using files-mapping to narrow the scope of coverage.
When file names are passed in incorrect form, the result of mapping will be empty.
I suspect that either:
- the file mappings are getting passed in a different way (maybe swapped?)
- one of regex_expression, type_mapping, owner/type/name/subexpression is not passed correctly
The difference in behavior can be seen here:
- in test run with 3.1.7, coverage is empty and the sonar
test_results.xml
contains DB object_name as file_name. - in test run with 3.1.6 coverage is populated and the sonar
test_results.xml
contains expected file_names.