-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
.runsettings Data Collector not being applied in CLI #34479
Comments
@nohwnd Can you help with this? |
@jakubch1 please help :) |
Currently you have to create runsettings and exclude libraries (https://learn.microsoft.com/en-us/visualstudio/test/customizing-code-coverage-analysis?view=vs-2022) |
Please change runsettings exclusions to:
|
When you run
dotnet test .\XUnitTest.sln -s .\XUnitTest\.runsettings
against this example solution and import the code coverage results into Visual Studio 2022 Enterprise you can see references to unwanted binaries, i.e. Moq.dll. When you use the same .runsettings via Visual Studio's "Analyze Code Coverage" functionality you can only see references to the binaries generated by the build.Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: