1 | <!-- saved from url=(0014)about:internet --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
---|
2 | <html>
|
---|
3 | <!-- Standard Head Part -->
|
---|
4 | <head>
|
---|
5 | <title>NUnit - AssemblyIsolation</title>
|
---|
6 | <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
---|
7 | <meta http-equiv="Content-Language" content="en-US">
|
---|
8 | <link rel="stylesheet" type="text/css" href="nunit.css">
|
---|
9 | <link rel="shortcut icon" href="favicon.ico">
|
---|
10 | </head>
|
---|
11 | <!-- End Standard Head Part -->
|
---|
12 |
|
---|
13 | <body>
|
---|
14 |
|
---|
15 | <!-- Standard Header for NUnit.org -->
|
---|
16 | <div id="header">
|
---|
17 | <a id="logo" href="http://www.nunit.org"><img src="img/logo.gif" alt="NUnit.org" title="NUnit.org"></a>
|
---|
18 | <div id="nav">
|
---|
19 | <a href="http://www.nunit.org">NUnit</a>
|
---|
20 | <a class="active" href="index.html">Documentation</a>
|
---|
21 | </div>
|
---|
22 | </div>
|
---|
23 | <!-- End of Header -->
|
---|
24 |
|
---|
25 | <div id="content">
|
---|
26 |
|
---|
27 | <h3>Assembly Isolation</h3>
|
---|
28 |
|
---|
29 | <p>NUnit isolates test assemblies from its own code and from one another
|
---|
30 | by use of separate AppDomains and/or Processes.
|
---|
31 |
|
---|
32 | <p>By default, NUnit loads a test assembly into a separate <b>AppDomain</b>,
|
---|
33 | while its own code runs in the primary <b>AppDomain</b>.
|
---|
34 |
|
---|
35 | <p>When multiple assemblies are run at the same time, NUnit loads them differently
|
---|
36 | depending on how they were specified. For assemblies that are part of an
|
---|
37 | NUnit project, then a single <b>AppDomain</b> is used. If the assemblies
|
---|
38 | were specified on the console runner command line, then a separate
|
---|
39 | <b>AppDomain</b> is used for each of them.
|
---|
40 |
|
---|
41 | <p>If greater separation is desired, test assemblies may be loaded into
|
---|
42 | a separate <b>Process</b> or into multiple processes. This is done
|
---|
43 | automatically by NUnit in the case where the tests are to be run under
|
---|
44 | a different runtime from the one that NUnit is currently using. Tests
|
---|
45 | running in a separate process are executed under the control of the
|
---|
46 | <a href="nunit-agent.html">nunit-agent</a> program.
|
---|
47 |
|
---|
48 | <h3>Controlling Isolation</h3>
|
---|
49 |
|
---|
50 | <p>Beyond the NUnit default behavior, the user may control the level of isolation
|
---|
51 | through the command line or through NUnit's general settings. Process and AppDomain
|
---|
52 | isolation may also be specified as part of the settings of an NUnit project.
|
---|
53 |
|
---|
54 | <h4>Command Line</h4>
|
---|
55 |
|
---|
56 | <p>Assembly Isolation may be specified on the console runner commandline using
|
---|
57 | the <b>/process</b> and <b>/domain</b> options. See
|
---|
58 | <a href="consoleCommandLine.html">NUnit-Console Command Line Options</a> for more information.
|
---|
59 |
|
---|
60 | <h4>General Settings</h4>
|
---|
61 |
|
---|
62 | <p>The built-in NUnit defaults may be overridden using the <b>Assembly Isolation</b>
|
---|
63 | panel of the NUnit <b>Settings Dialog</b>. Settings made here are saved and become
|
---|
64 | the new default values for all executions of NUnit until changed. For more info,
|
---|
65 | see the <a href="settingsDialog.html">Settings Dialog</a> page.
|
---|
66 |
|
---|
67 | <h4>Project Settings</h4>
|
---|
68 |
|
---|
69 | <p>Isolation settings may be specified for an individual NUnit project using the
|
---|
70 | <a href="projectEditor.html">Project Editor</a>.
|
---|
71 |
|
---|
72 | </div>
|
---|
73 |
|
---|
74 | <!-- Submenu -->
|
---|
75 | <div id="subnav">
|
---|
76 | <ul>
|
---|
77 | <li><a href="index.html">NUnit 2.5.10</a></li>
|
---|
78 | <ul>
|
---|
79 | <li><a href="getStarted.html">Getting Started</a></li>
|
---|
80 | <li><a href="assertions.html">Assertions</a></li>
|
---|
81 | <li><a href="constraintModel.html">Constraints</a></li>
|
---|
82 | <li><a href="attributes.html">Attributes</a></li>
|
---|
83 | <li><a href="runningTests.html">Running Tests</a></li>
|
---|
84 | <ul>
|
---|
85 | <li><a href="nunit-console.html">Console Runner</a></li>
|
---|
86 | <li><a href="nunit-gui.html">Gui Runner</a></li>
|
---|
87 | <li><a href="pnunit.html">PNUnit Runner</a></li>
|
---|
88 | <li><a href="nunit-agent.html">NUnit Agent</a></li>
|
---|
89 | <li><a href="runtimeSelection.html">Runtime Selection</a></li>
|
---|
90 | <li id="current"><a href="assemblyIsolation.html">Assembly Isolation</a></li>
|
---|
91 | <li><a href="configFiles.html">Configuration Files</a></li>
|
---|
92 | <li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
---|
93 | <li><a href="vsSupport.html">Visual Studio Support</a></li>
|
---|
94 | </ul>
|
---|
95 | <li><a href="extensibility.html">Extensibility</a></li>
|
---|
96 | <li><a href="releaseNotes.html">Release Notes</a></li>
|
---|
97 | <li><a href="samples.html">Samples</a></li>
|
---|
98 | <li><a href="license.html">License</a></li>
|
---|
99 | </ul>
|
---|
100 | </ul>
|
---|
101 | </div>
|
---|
102 | <!-- End of Submenu -->
|
---|
103 |
|
---|
104 |
|
---|
105 | <!-- Standard Footer for NUnit.org -->
|
---|
106 | <div id="footer">
|
---|
107 | Copyright © 2010 Charlie Poole. All Rights Reserved.
|
---|
108 | </div>
|
---|
109 | <!-- End of Footer -->
|
---|
110 |
|
---|
111 | </body>
|
---|
112 | </html>
|
---|