vstest icon indicating copy to clipboard operation
vstest copied to clipboard

ArgumentNullException when executing mstests that don't use test adapter...

Open halverson-dev opened this issue 10 years ago • 2 comments

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

  1. Open project at \mlangfs1\public\kevinh\WebApplication1
  2. 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#

halverson-dev avatar Nov 03 '16 00:11 halverson-dev

Note: We may not need to fix anything if we remove the "Shared" capability from the test host manager.

halverson-dev avatar Nov 03 '16 00:11 halverson-dev

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

sbaid avatar Nov 03 '16 05:11 sbaid