VSTestHost.exe stops working - cannot run unit tests

The Microsoft unit testing framework unexpectedly went on strike.

When I try to run tests in VS2008, I get a dialog with the message "VSTestHost.exe stops working."

I have a Visual Studio Team System 2008 (version 9.0.30729.1 SP) running on Vista with all applicable updates.

The Problem Reports and Solutions report says that I am “upgrading to the latest retail version of Visual Studio Team Edition for software testers,” which is not the case.

I tried to reboot.
I tried "devenv / resetuserdata"

It didn't make any difference.

I would like to return to MbUnit based on this stupidity, but this is not my choice.
Any suggestions on how to fix this?

+5
source share
4 answers

This is usually due to something wrong in the code, such as an infinite loop or circular reference.

I had the same problem and I realized that my code was confused and the test environment just protected itself from my code by disabling itself.

The key for me was that the same thing happened with two different testing platforms. So this should be my code.

+7
source

, , . : , Linq, , .

, :
1: "select" . , - .

2: .

, , , . , , " ", , , Sql - , - , . . - , .

+1

, , , VSTestHost.exe , . , , "Test run completed" ( "Test run failed" ) , fail ().

They kind of buried this information, but it’s useful to know, especially if the host does not crash, but some of the tests just do not work, sometimes information about why can be found in this link.

+1
source

Have you tried repairing in Visual Studio or even returning to factory settings?

In reset to factory, run devenv / ResetSettings from the start window.

0
source

All Articles