-
Notifications
You must be signed in to change notification settings - Fork 315
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
dotnet.exe crashes when called from vstest.console.exe on .NET Core 2.2 #1869
Comments
Maybe related to #859 |
@Ausm You mean |
@singhsarab Yes, u r right, typo from me... ;) |
@Ausm just to confirm it seems you are using win 2012 server machine? Can you please try following runsettings mentioned at https://github.com/Microsoft/vstest/blob/master/src/DataCollectors/TraceDataCollector/VanguardCollector/DefaultCodeCoverageConfig.xml use |
Yes, I'm running it on a Win 2012 server machine. |
Did so and it works... even if I keep |
/EnableCodeCoverage option gets overshadowed since you are passing the same thing via settings file created above. This is a known issue on Win 8 based OS, which doesn't happen on recent Win10 based OS Glad to know that the issue is resolved for you. I'll close this issue. |
Description
I try to get my build working which uses a "Visual Studio Test" Task to execute tests in a test project (MSTest).
That build runs on a build server that has VS Build Tools and VS Test Agent installed.
When I run:
& "C:\Program Files (x86)\Microsoft Visual Studio\2017\TestAgent\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" D:\S\4\s\test\Project.Test\bin\release\netcoreapp2.2\Project.Test.dll /Settings:D:\S\_temp\1b091bf0-fe0a-11e8-996b-6798074e2821.runsettings /EnableCodeCoverage /logger:trx "/TestAdapterPath:\"D:\S\4\s\""
It runs into a timeout, and dotnet.exe crashes with the following message:
On my Dev computer with Visual Studio 2017 installed, everything works fine.
The problem seems to be the
\EnableCodeCoverage
switch. If I remove that, everything works, but then I don't have a code coverage report :(Steps to reproduce
A test project where the error occured: TestCore22Issue.zip
Expected behavior
To execute tests and create trx and codecoverage file.
Actual behavior
dotnet.exe crashes.
Diagnostic logs
Console output of the build process.
Environment
The text was updated successfully, but these errors were encountered: