-
Notifications
You must be signed in to change notification settings - Fork 388
Include Filter not Working when Part of Docker ENTRYPOINT #767
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
If your app is a .NET core app you should use collectors, I also saw that you're using RabbitMQ one of the reason to use collectors because we found cases when rabbit shutdown fires known issue https://github.com/tonerdo/coverlet/blob/master/Documentation/KnownIssues.md#1-vstest-stops-process-execution-earlydotnet-test If you use collectors with runsettings file you shouldn't have problem with quotes escapes https://github.com/tonerdo/coverlet/blob/master/Documentation/VSTestIntegration.md |
Marco, That does appear to work better. However, there's one major issue that affects me changing over: I can't seem to change the output directory of the reports. It uses the results-directory, but always puts it in a subfolder. That's not working with my Azure build pipeline. |
Yeah... looking at the code, it seems that collector uses |
Unfortunately we cannot change that at the moment is a vstest plat behaviour #500 (comment) but you can specify the root folder #500 (comment) |
Go ahead and close this, then. I'm glad you consider this a known issue, but it's not documented very well, if at all. |
The home page report vstest integration the best and preferred way to use coverage https://github.com/tonerdo/coverlet/blob/master/README.md#quick-start, what do you think we can do to better explain that? |
We added documentation on |
When trying to use the
/p:Include
filter as part of a Dockerfile's ENTRYPOINT, it seems to be ignored. However, when I run the same command directly inside the docker image, it works great.The command ran directly in the image (working directory is
/app/test
):Generates:
To run the docker image from Windows PowerShell:
Which in turn has an ENTRYPOINT like:
Generates:
What am I doing wrong?
The text was updated successfully, but these errors were encountered: