Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Live Unit testing is not working "Failed to initialize client proxy: could not connect to test process."

When Trying to activate live unit testing on VS 2017 I get this error:

 [TestRunner 1] Failed to initialize client proxy: could not connect to test process.
FatalError - System.AggregateException: One or more errors occurred. ---> Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: Failed to initialize client proxy: could not connect to test process.
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources)
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyExecutionManager.InitializeExtensions(IEnumerable`1 sources)
   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyExecutionManager.StartTestRun(TestRunCriteria testRunCriteria, ITestRunEventsHandler eventHandler)

Other similar solutions to this error say it might be permissions so I've already tried running VS2017 as administrator, but that didn't work. and other solutions say tat I need to run the test in a different way but this is for live unit testing so I don't think they a viable options. I've even created a new unit test project from the one that already existed but I still get this error.

Update: The Tests are located in a MsTest V2 test project running on a VS2017 enterprise Edition and it is testing an MVC webpage project under .Net framework 4.5.2 using Git version controls.

like image 893
Ivan Cortez Avatar asked Nov 07 '22 16:11

Ivan Cortez


1 Answers

In my case issue was caused because of wrong configuration of my runsettings file.

If you use testsettings , try to execute tests without using it.

like image 199
erhan355 Avatar answered Nov 15 '22 10:11

erhan355