Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vstest.executionengine.x86.exe not closing

I've encountered an error when running unit tests. If I Debug the unit tests vstest.executionengine.x86.exe runs, then closes when the tests pass.

If I just run the tests (Even if the test is as simple as just creating a new list, with no asserts) vstest.executionengine.x86.exe doesn't close and stays running in task manager.

This is causing an issue for me when it comes to writing more complicated tests that include removing files / cleaning up sqllite databases.

Any help would be appreciated.

EDIT :

Steps to reproduce :

  • Create New Unit Test Project
  • Debug Unit Tests - vstest.executionengine.x86 opens and closes, test passes.
  • Run Unit Tests - vstest.executionengine.x86 opens and stays open
like image 362
Jamez Avatar asked Nov 21 '12 16:11

Jamez


1 Answers

This is by design.

The vstest.executionengine.exe is restarted only when we detect a change in the configuration between two consecutive test runs. This helps ensure we aren't taking a perf hit on process restarts unnecessarily.

Product Update With VS2013 we have a new menu item under Test -> Test Settings called "Keep Test Execution Engine Running". You can uncheck this to opt out of the default behavior.

like image 119
allen Avatar answered Oct 11 '22 23:10

allen