-
Notifications
You must be signed in to change notification settings - Fork 15
Coverage files not mapped after upgrade to cli 3.1.7 #162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I did a bit of debug on utPLSQL itself to capture what is passed from cli. utPLSQL-cli v3.1.7
utPLSQL-cli v3.1.6
It seems that in 3.1.7, the parameter Since empty array is not a valid value, we could treat empty array the same way we treat null and replace it with default mapping in utPLSQL-core. |
Okay, got it - we call it now as empty array but should pass as null when not set. Question: Is an empty mapping array ever a valid option? I don't think so but would be sure. |
Empty array is not a valid input as it will never cause a proper mapping. |
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 difference in behavior can be seen here:
test_results.xml
contains DB object_name as file_name.test_results.xml
contains expected file_names.The text was updated successfully, but these errors were encountered: