|
This course - Configuring Nunit
Last modified
08/07/2006
|
Nunit v2.2.8 for
.NET 2.0 enables automated unit testing with VS.NET 2005.
After installing Nunit, go to the \bin folder of the install area (C:\Program
Files\Nunit by default) and modify two files:
nunit-gui.exe.config and nunit-console.exe.config. These are
text/XML files, and you should be able to edit them by right-clicking
over the files and select "Open with...Notepad". In each file:
- Delete the HTML comments from around the startup section.
- The versions in the startup section need to be adjusted exactly to
reflect the versions on the machine as found in c:\windows\Microsoft.NET\Framework
(the latest versions of .NET must be listed first); in Penn labs, the
list should read as follows:
<startup>
<supportedRuntime version="v2.0.50727" />
<supportedRuntime version="v2.0.50215" />
<supportedRuntime version="v1.1.4322" />
<supportedRuntime version="v1.0.3705" />
<requiredRuntime version="v1.0.3705" />
</startup>
Test the nstallation by downloading
this project:
- Unzip the project to a folder at a known location on your disk
- Open the project in VS.NET '05
- Update the Nunit reference for Nunit's location
on your machine
- In Release mode, compile the project and exit VS.NET '05.
- Click on the Project1.nunit file in the
project folder. You will be able to tell if Nunit works if you get red and
green indicators upon clicking the Run button.
Visitors:
