Unable to debug test

Topics: Developer Forum, User Forum
Sep 8, 2011 at 1:23 AM

Hi, I installed NUnitForVS on top of VS2010 SP1 Professionnal and I can run my tests without problems.  But if I add a breakpoint in my test method and select "Debug test" from the test view, the test is executed but my breakpoint is never hit.  Is this the expected behavior?  Is this suppose to work?



Sep 14, 2011 at 11:04 AM

I have the same problem!

Sep 27, 2011 at 11:14 AM
Edited Sep 27, 2011 at 11:22 AM

I use the same environment and the "Debug test" works.  I think that the .dll of your TestProject is not loading correct. 

My VS is in German and the command is something like: debug selected test or so :-) 

Productive and test code is  .net 3.5  with Any CPU as target.

Hope this helps.

Sep 28, 2011 at 6:40 PM

I tested it again and I still can't debug my tests.

In case it can help, when I right click on my test in the "Test View" and select "Open Test", I get the following message box: "Error HRESULT E_FAIL has been returned from a call to a COM component."

Unfortunately because of these two bugs, NUnitForVS is not usable for me and I have to revert on using TestDriven.NET.

Sep 29, 2011 at 8:59 AM

This error occurs when you change a test and don't hit the refresh button in the Test View