Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vs2010 unit tests aborting for no reason

We recently had our TFS 2008 server go down. It was rebuilt with TFS 2010 server. Now, when I selected VS unit tests and run, the first few are marked as "Aborted" and the others are "Not Executed"... This happens without any input from me. The unit tests were working fine before the crash. What could be causing that?

Thanks.

like image 923
laconicdev Avatar asked Apr 25 '11 16:04

laconicdev


2 Answers

I'm not sure but I have similar problem but on my local machine and with VS 2008. I cannot run some tests and have their status aborted with no reason. In the test run results I only have message "Test host process exited unexpectedly." Seems like with no reason. But I found more info on connect.microsoft.com site. The problem is my code rises StackOverflowException and it prevents the test from running. So fixing this problem heals my tests. Hope somebody it helps. Unit test result only shows "aborted"/"test run error" for unrecoverable errors

like image 190
Mike Eshva Avatar answered Oct 05 '22 11:10

Mike Eshva


I was getting this same issue, however in my case ALL tests were being skipped, and the error was reproducible on an empty test project, so code was ruled out.

Checking the EventViewer led me to the cause in my case; somehow the C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\QTAgent32.exe.config file had been removed from my machine?!? I copied one from another machine here and I'm back in action.

like image 39
RJ Lohan Avatar answered Oct 05 '22 11:10

RJ Lohan