-
Notifications
You must be signed in to change notification settings - Fork 4.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
Can't get code coverage working with VS2019 #29757
Comments
The problem appears to be related to With this present, the "It was not possible to find any installed dotnet SDKs" error message is displayed. With that environment variable unset, |
If install .NET Core SDK 3.0.100-preview5-011568, then run the individual commands from RunTests.cmd, without the environment variables, I can get a coverage report. This unblocks me for testing coverage locally, but the original issue of the command in the documentation ( |
@ViktorHofer has been working on getting this issue resolved. Thanks for reporting it. cc @ericstj |
The fix for this is in arcade now and will be consumable in corefx with the next auto update. |
@ViktorHofer was this fixed by dotnet/corefx#38200? |
This should already be fixed now. |
/cc @buyaa-n @ahsonkhan |
correct. |
Confirmed this is fixed; thanks! |
I'm interested in contributing tests to increase code coverage (for one or more of these issues: https://github.com/dotnet/corefx/labels/increase-code-coverage).
I've set up a Windows 10 development machine with VS2019 Preview, as per https://github.com/dotnet/corefx/wiki/Development-environment-setup-for-Windows.
In
src\System.Data.Common\tests
I can executedotnet msbuild /t:BuildAndTest /p:ForceRunTests=true /p:ConfigurationGroup=Release
and run all the tests. But if I add/p:Coverage=true
(following the instructions at https://github.com/dotnet/corefx/blob/master/Documentation/building/code-coverage.md), it fails with the following message:I note that the report URL in the coverage page is not currently working: https://ci.dot.net/job/dotnet_corefx/job/master/job/code_coverage_windows/Code_Coverage_Report/
Also, there are some issues that suggest that the coverage infrastructure may be getting overhauled: #960, #29411. This makes me unsure if I should expect coverage to be working or not.
Is it possible to run coverage locally? If so, is there something I need to change in my setup to get it working?
The text was updated successfully, but these errors were encountered: