The Project Editor is displayed through the Project | Edit menu item and allows creating or modifying NUnit test projects. It should be noted that a Test Project is active whenever any tests have been loaded, even if no project was explicitly created or referenced. In the case of an assembly being loaded, an internal wrapper project is created. This allows the user to change settings and save the project directly without needing to perform any extra steps. The editor consists of a common area and two tabs, as seen in the image below.
The common area of the Project Editor contains information pertaining to the project as a whole. Information that applies to a particular configuration is displayed in the General and Assemblies tabs.
This label shows the full path to the project file. In the case of a wrapper project, the path is set to the same directory as the assembly that was initially opened.
This TextBox allows the user to change the project AppBase, which defaults to the directory of the project file. The button to the right of the TextBox allows the user to browse and select a directory.
This dropdown list allows you to specify how operating system processes are used in loading and running the tests in this project. Four settings are defined:
This dropdown list allows you to specify how tests are loaded into AppDomains by NUnit. Three settings are defined:
This dropdown list allows you to select the particular configuration within a project that is displayed in the bottom part of the dialog.
This button opens the Configuration Editor, which allows you to add, delete or rename configs and set the active configuration.
The General tab allows setting a number of options pertaining to the selected configuration, all of
which will be stored in the NUnit project file as attributes of the
This dropdown allows you to select a particular runtime framework to be used for loading and running tests under the current configuration. Currently, only Microsoft .NET and Mono are supported. If Any is selected, the tests will be run under the same runtime that NUnit itself is currently using.
This TextBox allows you to select the particular version of the runtime framework to be used for loading and running tests under the current configuration. It may be left blank if any version is acceptable or you may specify a version using two, three or four components.
Note: Running tests under a different runtime or version from the one that NUnit is currently using will force them to run in a separate process.
Note: To conform with normal usage, specifying Mono as the runtime with "1.0" as the version results in use of the Mono 1.0 profile, equating to version 1.1.4322.
The ApplicationBase defaults to the directory containing the project file. Beginning with NUnit 2.2.3, it may be set to any location that is desired.
The configuration file defaults to the name of the test project with the extension changed from .nunit to .config. The user may substitute another name.
By default, the PrivateBinPath is generated from the assembly locations specified on the Assemblies Tab. For those applications requiring a different level of control, it may be specified manually or using this editor or placed in the configuration file.
The assemblies tab contains the list of assemblies that form part of this test project.
Note: Although the dialog shows the location of assemblies as absolute paths, they are always persisted in the NUnit project file as paths relative to the application base. This allows moving projects as a whole to a different directory location.
Opens a dialog allowing adding an assembly to this configuration. If Visual Stuio support is enabled, you may also select and add a VS project.
After confirmation, removes the selected assembly from this configuration.
This text box displays the full path to the selected assembly. You may edit the contents to change the path to the assembly.