Time Check:
Thankyou for visiting my blog.
Do visit my blog space in few days.

Thursday, April 12, 2012

Debugging NUnit Test Cases

If you are trying to debug a NUnit test project and thinking how to do it. Here it goes, it's as simple as giving the path of NUnit UI executable.


1. Right click on the NUnit Test project
2. Click on Properties
3. Goto Debug tab
4. Select "Start external program" radio button
5. Browse the path of NUnit.exe ["C:\Program Files\NUnit 2.6\bin\nunit.exe"]
6. Save the project file and you are done.
7. Set breakpoint in the test method, which you wish to debug.

Either set the NUnit Test Project as your startup project and hit F5
OR
Right click on NUnit Test Project and Select Debug > Start new instance.


Refer to the screengrab ..

Labels: ,

0 Comments:

Post a Comment

<< Home