You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TranslationLayer throws an error on the communication channel if vstest.console exits
Steps to reproduce
"Run All" from test explorer on a unit test project
Terminate the vstest.console.exe process
"Run All" on the same project
Expected behavior
Run All should work on step 3
Actual behavior
Following error is thrown:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.IOException: Unable to write data to the transport connection: An established connection was aborted by the software in your host machine. ---> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine
at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.IO.Stream.WriteByte(Byte value)
at System.IO.BinaryWriter.Write(Byte value)
at System.IO.BinaryWriter.Write7BitEncodedInt(Int32 value)
at System.IO.BinaryWriter.Write(String value)
at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.SocketCommunicationManager.WriteAndFlushToChannel(String rawMessage) in D:\dd\gh\Microsoft\vstest\src\Microsoft.TestPlatform.CommunicationUtilities\SocketCommunicationManager.cs:line 241
at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.SocketCommunicationManager.SendMessage(String messageType, Object payload) in D:\dd\gh\Microsoft\vstest\src\Microsoft.TestPlatform.CommunicationUtilities\SocketCommunicationManager.cs:line 202
at Microsoft.TestPlatform.VsTestConsole.TranslationLayer.VsTestConsoleRequestSender.DiscoverTests(IEnumerable`1 sources, String runSettings, ITestDiscoveryEventsHandler eventHandler) in D:\dd\gh\Microsoft\vstest\src\Microsoft.TestPlatform.VsTestConsole.TranslationLayer\VsTestConsoleRequestSender.cs:line 107
at Microsoft.TestPlatform.VsTestConsole.TranslationLayer.VsTestConsoleWrapper.DiscoverTests(IEnumerable`1 sources, String discoverySettings, ITestDiscoveryEventsHandler discoveryEventsHandler) in D:\dd\gh\Microsoft\vstest\src\Microsoft.TestPlatform.VsTestConsole.TranslationLayer\VsTestConsoleWrapper.cs:line 104
Similar behaviour for Debug All Scenario is observed as well.
* Fix for indefinite waiting in IDE on testhost crash and show error message in IDE output window
* Monitor process exit of child vstest.console and start the runner process if not running from translation layer
* Allow for async receive message in communication layer
Fix#66, #48 and #61.
Description
TranslationLayer throws an error on the communication channel if vstest.console exits
Steps to reproduce
Expected behavior
Run All should work on step 3
Actual behavior
Following error is thrown:
Similar behaviour for Debug All Scenario is observed as well.
Environment
vstest.console from 576f536 bits.
The text was updated successfully, but these errors were encountered: