-
Notifications
You must be signed in to change notification settings - Fork 386
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
No match found error when excluding multiple namespaces #929
Comments
Seems related to escaping of double quotes...I don't know z shell but that error |
The same issue happens on AZDO pipeline so it has nothing to do with Thanks. |
Can you attach also AzDo error log?
When you use Try to do a test with local sample Clone this repo and go to https://github.com/coverlet-coverage/coverlet/tree/master/Documentation/Examples/MSBuild/MergeWith
We'll get 0% of coverage(that lib has got only one class for sample), in this case I ran on win terminal so without any escape. |
Ok, I will try to run the sample and report back here but it works fine for one excluded namespace the problem I'm facing is trying to exclude more than one namespace.
In the log attached line 1386 you see the following error
I followed exactly the example mentioned in the docs that you specified to add escaped quotes around the string. It will be interesting to know how to get the command to work with zsh for a mac environment. |
zsh escaping is similar to sh or bash, you can find a maybe too detailed documentation here e.g.: Double quotes usually disables globbing, but in your example there is
or if the double quotes are somehow needed for the msbuild task use single qoutes around the whole thing to preserve both double quotes and the pattern as-is:
|
ok that error is not related to coverlet it's related to sourcelinks(depends on how you've cloned/forked), copy/paste only |
@MarcoRossignoli here you go, wonder why for me it says 100% |
Enable log and check if filter is passed correctly https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/Troubleshooting.md#msbuild-integration |
Can you attach that |
I'm sorry I'm not following what is |
Sorry to you 😓 in left logging box last line of logs |
I navigated to that folder and definitely it is not there. |
@MarcoRossignoli Also I wanna say thank you for the tremendous efforts you guys put in this tool :) |
Ok it's ok we skipped libs so no coverage file created...btw seems ok..I need to understand if that 100% is related to some round issue, can you attach |
Had to change the extension so GitHub allows me to upload and yes it is empty. |
Ok it's working as expected, I'll take a look to console output to understand the difference. |
But the issue is not resolved, I'm still not able to use comma separated exclusion list of namespaces. I attached above AZDO log. |
Oh sorry again take a look at escape syntax like our build https://github.com/coverlet-coverage/coverlet/blob/master/eng/build.yml Last |
Thanks, it finally worked with |
Glad to hear! |
Hi,
As suggested by @MarcoRossignoli I'm opening this issue after the short conversation on #56
When trying to use Exclude filter in MSBuild task integration to exclude more than one namespace I get some errors:
The text was updated successfully, but these errors were encountered: