vstest.executionengine.x86.exe – Not Closing

Hi

I was getting errors that assemblies where being locked and when trying to delete them it indicated that vstest.executionengine.x86.exe had the assemblies open, for a while I was just killing the process and then running the next test run but today the TFS Build server starting giving the same issues. After some digging I found the that this had been brought to Microsoft’s attention and they say it’s by design, Response below.

ms reply for vs test execution engine

https://connect.microsoft.com/VisualStudio/feedback/details/771994/vstest-executionengine-x86-exe-32-bit-not-closing-vs2012-11-0-50727-1-rtmrel

The workaround/fix for this is to create a .runsettings xml file that has the following structure

 

        true

Then go to [MENU]> Test > Test Settings > Select Test Settings File

test settings menu

Browse to the settings file (I advise keeping this file either in the root of the solution or in the unit test project.

test settings select file

Lastly make sure you have killed the vstest.executionengine.x86.exe from any previous runs and from now you won’t have any locking issues.

Hope this helps =D

  • Jacques

    Please post me your .runsettings xml file Thank you I have some trouble with vstest.executionengine.x86.exe in visual sutio 2013 test.

Buffer