vstest
vstest copied to clipboard
ArgumentNullException when executing mstests that don't use test adapter...
Description
In DefaultTestHostManager.GetTestHostProcessStartInfo, "sources" may be null if the request was made to run specific tests and a test adapter is not being used.
Steps to reproduce
- Open project at \mlangfs1\public\kevinh\WebApplication1
- Test > Live Unit Testing > Start
Expected behavior
Tests run and coverage glyphs appear
Actual behavior
System.ArgumentNullException:
System.Core.dll!System.Linq.Enumerable.FirstOrDefault<string>(System.Collections.Generic.IEnumerable<string> source) Unknown
> Microsoft.TestPlatform.CrossPlatEngine.dll!Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DefaultTestHostManager.GetTestHostProcessStartInfo(System.Collections.Generic.IEnumerable<string> sources, System.Collections.Generic.IDictionary<string, string> environmentVariables, Microsoft.VisualStudio.TestPlatform.ObjectModel.Engine.TestRunnerConnectionInfo connectionInfo) Line 119 C#
Microsoft.TestPlatform.CrossPlatEngine.dll!Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(System.Collections.Generic.IEnumerable<string> sources) Line 77 C#
Microsoft.TestPlatform.CrossPlatEngine.dll!Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyExecutionManager.StartTestRun(Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria testRunCriteria, Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunEventsHandler eventHandler) Line 93 C#
Microsoft.TestPlatform.CrossPlatEngine.dll!Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.Parallel.ParallelProxyExecutionManager.StartTestRunOnConcurrentManager(Microsoft.VisualStudio.TestPlatform.ObjectModel.Engine.IProxyExecutionManager proxyExecutionManager) Line 293 C#
Note: We may not need to fix anything if we remove the "Shared" capability from the test host manager.
As per discussion in the meeting - LUT is broken with web application template in the web workload. Clear RCA needs to be established. @KevinH-MS @ManishJayaswal