Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2010 Unit test “Pending” and the test cannot be completed

I'm using VS2010 (with windows 7).

Every time I try to run a unit test it stays on "Pending" and the test cannot be completed.

I tried to follow this msdn instructions.

I tried debugging test method (test view/debug selection), set breakpoints, but VS2010 indicates: the breakpoint will not currently be hit... I'm in debug configuration.

Any advice?

like image 458
Franziee Avatar asked Oct 02 '12 07:10

Franziee


2 Answers

If you have VS2010 and VS2012 installed on the same box you need to install SP1 for VS2010 or the unit tests sometimes won't work. (SP1 available here.)

like image 72
S Walsh Avatar answered Oct 18 '22 03:10

S Walsh


Try to do a clean solution (right click solution and clean). And then do a rebuild. That should solve the problem.

like image 32
Keethanjan Avatar answered Oct 18 '22 04:10

Keethanjan