Skip to content
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 vstest.console.dll fails with Index was outside the bounds of the array #292

Closed
smadala opened this issue Dec 20, 2016 · 0 comments
Closed

Comments

@smadala
Copy link
Contributor

smadala commented Dec 20, 2016

Description

dotnet.exe vstest.console.dll with more than seven test sources dll run to fail with error "Error: Index was outside the bounds of the array"

Steps to reproduce

Run dotnet.exe vstest.console.dll with more than 7 test source
Ex: C:\Users\samadala\src\vstest\tools\dotnet\dotnet.exe C:\Users\samadala\src\vstest\artifacts\Debug\netcoreapp1.0\vstest.console.dll C:\Users\samadala\src\vstest\test\datacollector.x86.UnitTests\bin\Debug\netcoreapp1.0\datacollector.x86.UnitTests.dll C:\Users\samadala\src\vstest\test\Microsoft.TestPlatform.Client.UnitTests\bin\Debug\netcoreapp1.0\Microsoft.TestPlatform.Client.UnitTests.dll C:\Users\samadala\src\vstest\test\Microsoft.TestPlatform.Common.UnitTests\bin\Debug\netcoreapp1.0\Microsoft.TestPlatform.Common.UnitTests.dll C:\Users\samadala\src\vstest\test\Microsoft.TestPlatform.CommunicationUtilities.UnitTests\bin\Debug\netcoreapp1.0\Microsoft.TestPlatform.CommunicationUtilities.UnitTests.dll C:\Users\samadala\src\vstest\test\Microsoft.TestPlatform.CoreUtilities.UnitTests\bin\Debug\netcoreapp1.0\Microsoft.TestPlatform.CoreUtilities.UnitTests.dll C:\Users\samadala\src\vstest\test\Microsoft.TestPlatform.CrossPlatEngine.UnitTests\bin\Debug\netcoreapp1.0\Microsoft.TestPlatform.CrossPlatEngine.UnitTests.dll C:\Users\samadala\src\vstest\test\Microsoft.TestPlatform.Extensions.TrxLogger.UnitTests\bin\Debug\netcoreapp1.0\Microsoft.TestPlatform.Extensions.TrxLogger.UnitTests.dll C:\Users\samadala\src\vstest\test\Microsoft.TestPlatform.ObjectModel.UnitTests\bin\Debug\netcoreapp1.0\Microsoft.TestPlatform.ObjectModel.UnitTests.dll C:\Users\samadala\src\vstest\test\Microsoft.TestPlatform.Utilities.UnitTests\bin\Debug\netcoreapp1.0\Microsoft.TestPlatform.Utilities.UnitTests.dll C:\Users\samadala\src\vstest\test\Microsoft.TestPlatform.VsTestConsole.TranslationLayer.UnitTests\bin\Debug\netcoreapp1.0\Microsoft.TestPlatform.VsTestConsole.TranslationLayer.UnitTests.dll /platform:x64 /framework:.NETCoreApp,Version=v1.0 /testAdapterPath:C:\Users\samadala\src\vstest\packages\MSTest.TestAdapter\1.1.6-preview\build\_common /parallel

Expected behavior

Test run should successful.

Actual behavior

Failed with Error: Index was outside the bounds of the array
Run is halting forever
StackTrace:
at System.Collections.Generic.Queue1.Enqueue(T item) at Newtonsoft.Json.Serialization.MemoryTraceWriter.Trace(TraceLevel level, String message, Exception ex) at Newtonsoft.Json.Serialization.JsonSerializerInternalBase.IsErrorHandled(Object currentObject, JsonContract contract, Object keyValue, IJsonLineInfo lineInfo, String path, Exception ex) at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType) at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType) at Newtonsoft.Json.Linq.JToken.FromObjectInternal(Object o, JsonSerializer jsonSerializer) at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.SerializePayload(String messageType, Object payload) in C:\Users\samadala\src\vstest\src\Microsoft.TestPlatform.CommunicationUtilities\JsonDataSerializer.cs:line 134 at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.SocketCommunicationManager.SendMessage(String messageType, Object payload) in C:\Users\samadala\src\vstest\src\Microsoft.TestPlatform.CommunicationUtilities\SocketCommunicationManager.cs:line 222 at Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.TestRequestSender.InitializeExecution(IEnumerable1 pathToAdditionalExtensions, Boolean loadOnlyWellKnownExtensions) in C:\Users\samadala\src\vstest\src\Microsoft.TestPlatform.CommunicationUtilities\TestRequestSender.cs:line 94
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyExecutionManager.InitializeExtensions(IEnumerable`1 sources) in C:\Users\samadala\src\vstest\src\Microsoft.TestPlatform.CrossPlatEngine\Client\ProxyExecutionManager.cs:line 171
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyExecutionManager.StartTestRun(TestRunCriteria testRunCriteria, ITestRunEventsHandler eventHandler) in C:\Users\samadala\src\vstest\src\Microsoft.TestPlatform.CrossPlatEngine\Client\ProxyExecutionManager.cs:line 94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants