Run the NUnit GUI
Purpose:
This process will demonstrate how to run NUnit GUI.
Starting Point:
The Region test in the RegressionTests class must be complete. You
should have been able to successfully run the tests from your Web forms project.
The NUnit software should be installed.
Steps:
- Start the NUnit GUI.
- Use the Open command from the File menu to locate and load the debug
version of your Business Object Tests DLL. You will find it in the
\bin\debug folder under your Business Object Tests project.
- The test project should immediately load, showing the TestRegions test
in the RegressionTests class in the BusinessObjectTests project in the
Northwind solution, all on descending nodes below the name of your DLL.
(The panel would show more tests if there were more in the project, and it
will automatically show more as you add the tests and required decorations.)
- Select the TestRegions test. Click on the Run button. You
should see the bar turn green (assuming that this is the same test that you
ran successfully a few steps ago).
- To enable debugging while running NUnit, select the Debug Processes
Command of VisualStudio.NET's Tools menu. (This should only be done
while NUnit is running.)
- Select the NUnit GUI from the list, and click the Attach button.
- Close the dialog.
- Set a break point in you test, and run the test again from the NUnit
interface. You should be able to step through it as you did when
debugging the test using the IDE alone.
Rationale
This is just the way it works.
Discussion:
The only thing that is a pain in the butt here is that you have to reconnect
NUnit every time you restart it or Visual Studio if you want . It would be
nice if Visual Studio could automatically detect it.
Previous Step: Run the First Test
Next Step: Create a Data Entry Form