[1146] | 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-gui</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 Gui Runner</h2>
|
---|
| 28 | <p>The nunit.exe program is a graphical runner. It shows the tests in an
|
---|
| 29 | explorer-like browser window and provides a visual indication of the success or
|
---|
| 30 | failure of the tests. It allows you to selectively run single tests or suites
|
---|
| 31 | and reloads automatically as you modify and re-compile your code. The following
|
---|
| 32 | is a screenshot of NUnit running the same mock-assembly.dll shown in the
|
---|
| 33 | nunit-console example.</p>
|
---|
| 34 |
|
---|
| 35 | <div class="screenshot-left">
|
---|
| 36 | <img src="img/gui-screenshot.jpg"></div>
|
---|
| 37 | <p>
|
---|
| 38 | <h4>Tree Display</h4>
|
---|
| 39 | <p>This version of NUnit uses symbols in the test tree, which allow those who
|
---|
| 40 | are unable to easily distinguish colors to determine the test status.
|
---|
| 41 | Successful tests are colored green, with a check mark. Tests that are ignored
|
---|
| 42 | are marked with a yellow circle, containing a question mark. If any
|
---|
| 43 | tests had failed, they would be marked red, with an X symbol.</p>
|
---|
| 44 |
|
---|
| 45 | <p>In this example, there were a total of 11 test cases, but one of them was not
|
---|
| 46 | counted because it was marked Explicit. Note that it is shown as a gray
|
---|
| 47 | circle in the tree. Of the remaining 10 tests, 5 were run successfully and
|
---|
| 48 | 5 were ignored.</p>
|
---|
| 49 |
|
---|
| 50 | <p>The symbols shown in the tree are actually files in the NUnit bin directory.
|
---|
| 51 | These files are named Success.jpg, Failure.jpg and Ignored.jpg and may be
|
---|
| 52 | modified or replaced by the user.</p>
|
---|
| 53 |
|
---|
| 54 | <h4>Progress Bar</h4>
|
---|
| 55 | <p>The progress bar shows the progress of the test. It is colored according
|
---|
| 56 | to the "worst" result obtained: red if there were any failures, yellow if
|
---|
| 57 | some tests were ignored and green for success.
|
---|
| 58 |
|
---|
| 59 | <h4>Result Tabs</h4>
|
---|
| 60 | <p>The tabs along the bottom of the display show the results of running
|
---|
| 61 | a test. The <b>Errors and Failures</b> tab displays the error message
|
---|
| 62 | and stack trace for both unexpected exceptions and assertion failures.
|
---|
| 63 | Beginning with NUnit 2.5, source code for each stack location can be displayed
|
---|
| 64 | in this tab - as is seen above - provided that the program was compiled with
|
---|
| 65 | debug information.
|
---|
| 66 |
|
---|
| 67 | <p>The <b>Tests Not Run</b> tab provides a list of all tests that were
|
---|
| 68 | selected for running but were not run, together with the reason.
|
---|
| 69 |
|
---|
| 70 | <p>The Text Output tab displays text output from the tests, potentially
|
---|
| 71 | including console output, trace output and log output. The default display
|
---|
| 72 | provides a single tab, but additional tabs may be created by the user to
|
---|
| 73 | hold specific kinds of output. For more information on creating new tabs,
|
---|
| 74 | see the documentation for the
|
---|
| 75 | <a href="settingsDialog.html">Settings Dialog</a>.
|
---|
| 76 |
|
---|
| 77 |
|
---|
| 78 | <h3>Mini-Gui</h3>
|
---|
| 79 |
|
---|
| 80 | <p>Since the release of NUnit 2.4, an alternate "mini-gui" is also available. It
|
---|
| 81 | may be selected from the View menu. In the following screenshot, the mini
|
---|
| 82 | gui window has been positioned next to the Visual Studio IDE so
|
---|
| 83 | that both windows can be seen.</p>
|
---|
| 84 |
|
---|
| 85 | <div class="screenshot-left">
|
---|
| 86 | <img src="img/miniGui.jpg"></div>
|
---|
| 87 |
|
---|
| 88 | </div>
|
---|
| 89 |
|
---|
| 90 | <!-- Submenu -->
|
---|
| 91 | <div id="subnav">
|
---|
| 92 | <ul>
|
---|
| 93 | <li><a href="index.html">NUnit 2.5.10</a></li>
|
---|
| 94 | <ul>
|
---|
| 95 | <li><a href="getStarted.html">Getting Started</a></li>
|
---|
| 96 | <li><a href="assertions.html">Assertions</a></li>
|
---|
| 97 | <li><a href="constraintModel.html">Constraints</a></li>
|
---|
| 98 | <li><a href="attributes.html">Attributes</a></li>
|
---|
| 99 | <li><a href="runningTests.html">Running Tests</a></li>
|
---|
| 100 | <ul>
|
---|
| 101 | <li><a href="nunit-console.html">Console Runner</a></li>
|
---|
| 102 | <li id="current"><a href="nunit-gui.html">Gui Runner</a></li>
|
---|
| 103 | <ul>
|
---|
| 104 | <li><a href="guiCommandLine.html">Command-Line</a></li>
|
---|
| 105 | <li><a href="mainMenu.html">Main Menu</a></li>
|
---|
| 106 | <li><a href="contextMenu.html">Context Menu</a></li>
|
---|
| 107 | <li><a href="settingsDialog.html">Settings Dialog</a></li>
|
---|
| 108 | <li><a href="addinsDialog.html">Addins Dialog</a></li>
|
---|
| 109 | <li><a href="testProperties.html">Test Properties</a></li>
|
---|
| 110 | <li><a href="configEditor.html">Configuration Editor</a></li>
|
---|
| 111 | <li><a href="projectEditor.html">Project Editor</a></li>
|
---|
| 112 | </ul>
|
---|
| 113 | <li><a href="pnunit.html">PNUnit Runner</a></li>
|
---|
| 114 | <li><a href="nunit-agent.html">NUnit Agent</a></li>
|
---|
| 115 | <li><a href="runtimeSelection.html">Runtime Selection</a></li>
|
---|
| 116 | <li><a href="assemblyIsolation.html">Assembly Isolation</a></li>
|
---|
| 117 | <li><a href="configFiles.html">Configuration Files</a></li>
|
---|
| 118 | <li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
---|
| 119 | <li><a href="vsSupport.html">Visual Studio Support</a></li>
|
---|
| 120 | </ul>
|
---|
| 121 | <li><a href="extensibility.html">Extensibility</a></li>
|
---|
| 122 | <li><a href="releaseNotes.html">Release Notes</a></li>
|
---|
| 123 | <li><a href="samples.html">Samples</a></li>
|
---|
| 124 | <li><a href="license.html">License</a></li>
|
---|
| 125 | </ul>
|
---|
| 126 | </ul>
|
---|
| 127 | </div>
|
---|
| 128 | <!-- End of Submenu -->
|
---|
| 129 |
|
---|
| 130 |
|
---|
| 131 | <!-- Standard Footer for NUnit.org -->
|
---|
| 132 | <div id="footer">
|
---|
| 133 | Copyright © 2010 Charlie Poole. All Rights Reserved.
|
---|
| 134 | </div>
|
---|
| 135 | <!-- End of Footer -->
|
---|
| 136 |
|
---|
| 137 | </body>
|
---|
| 138 | </html>
|
---|