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 - Nunit-console</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 | <h2>NUnit-Console</h2>
|
---|
28 | <p>The nunit-console.exe program is a text-based runner and can be used when you
|
---|
29 | want to run all your tests and don’t need a red/yellow/green indication of
|
---|
30 | success or failure.</p>
|
---|
31 | <p>It is useful for automation of tests and integration into other systems. It
|
---|
32 | automatically saves its results in XML format, allowing you to produce reports
|
---|
33 | or otherwise process the results. The following is a screenshot of the console
|
---|
34 | program.</p>
|
---|
35 |
|
---|
36 | <div class="screenshot-left">
|
---|
37 | <img src="img/console-mock.jpg"></div>
|
---|
38 | <p>
|
---|
39 | <p>In this example, nunit-console has just run the tests in the mock-assembly.dll
|
---|
40 | that is part of the NUnit distribution. This assembly contains a number of tests, some
|
---|
41 | of which are either ignored or marked explicit. The summary line shows the
|
---|
42 | result of the test run. Click <a href="files/TestResult.xml">here</a>
|
---|
43 | to see the XML produced for this test run.</p>
|
---|
44 |
|
---|
45 | <p>The .NET 2.0 version of the nunit-console program is built using /platform:anycpu,
|
---|
46 | which causes it to be jit-compiled to 32-bit code on a 32-bit system and 64-bit code
|
---|
47 | on a 64 bit system. This causes an exception when NUnit is used to test a 32-bit
|
---|
48 | application on a 64-bit system. To avoid this problem, use the nunit-console-x86
|
---|
49 | program, which is built using /platform:x86, when testing 32-bit code on a
|
---|
50 | 64-bit system.
|
---|
51 |
|
---|
52 | </div>
|
---|
53 |
|
---|
54 | <!-- Submenu -->
|
---|
55 | <div id="subnav">
|
---|
56 | <ul>
|
---|
57 | <li><a href="index.html">NUnit 2.5.10</a></li>
|
---|
58 | <ul>
|
---|
59 | <li><a href="getStarted.html">Getting Started</a></li>
|
---|
60 | <li><a href="assertions.html">Assertions</a></li>
|
---|
61 | <li><a href="constraintModel.html">Constraints</a></li>
|
---|
62 | <li><a href="attributes.html">Attributes</a></li>
|
---|
63 | <li><a href="runningTests.html">Running Tests</a></li>
|
---|
64 | <ul>
|
---|
65 | <li id="current"><a href="nunit-console.html">Console Runner</a></li>
|
---|
66 | <ul>
|
---|
67 | <li><a href="consoleCommandLine.html">Command-Line</a></li>
|
---|
68 | </ul>
|
---|
69 | <li><a href="nunit-gui.html">Gui Runner</a></li>
|
---|
70 | <li><a href="pnunit.html">PNUnit Runner</a></li>
|
---|
71 | <li><a href="nunit-agent.html">NUnit Agent</a></li>
|
---|
72 | <li><a href="runtimeSelection.html">Runtime Selection</a></li>
|
---|
73 | <li><a href="assemblyIsolation.html">Assembly Isolation</a></li>
|
---|
74 | <li><a href="configFiles.html">Configuration Files</a></li>
|
---|
75 | <li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
---|
76 | <li><a href="vsSupport.html">Visual Studio Support</a></li>
|
---|
77 | </ul>
|
---|
78 | <li><a href="extensibility.html">Extensibility</a></li>
|
---|
79 | <li><a href="releaseNotes.html">Release Notes</a></li>
|
---|
80 | <li><a href="samples.html">Samples</a></li>
|
---|
81 | <li><a href="license.html">License</a></li>
|
---|
82 | </ul>
|
---|
83 | </ul>
|
---|
84 | </div>
|
---|
85 | <!-- End of Submenu -->
|
---|
86 |
|
---|
87 |
|
---|
88 | <!-- Standard Footer for NUnit.org -->
|
---|
89 | <div id="footer">
|
---|
90 | Copyright © 2010 Charlie Poole. All Rights Reserved.
|
---|
91 | </div>
|
---|
92 | <!-- End of Footer -->
|
---|
93 |
|
---|
94 | </body>
|
---|
95 | </html>
|
---|