PageRenderTime 26ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/nunit/runner/NUnitFitTests.html

#
HTML | 277 lines | 271 code | 6 blank | 0 comment | 0 complexity | 91ed163d7ab16ed0d08c8232e63fdc93 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html>
  3. <body>
  4. <h1>NUnit Acceptance Tests</h1>
  5. <p>
  6. Developers love self-referential programs! Hence, NUnit has always run all it's
  7. own tests, even those that are not really unit tests.
  8. <p>Now, beginning with NUnit 2.4, NUnit has top-level tests using Ward Cunningham's
  9. FIT framework. At this time, the tests are pretty rudimentary, but it's a start
  10. and it's a framework for doing more.
  11. <h2>Running the Tests</h2>
  12. <p>Open a console or shell window and navigate to the NUnit bin directory, which
  13. contains this file. To run the test under Microsoft .Net, enter the command
  14. <pre> runFile NUnitFitTests.html TestResults.html .</pre>
  15. To run it under Mono, enter
  16. <pre> mono runFile.exe NUnitFitTests.html TestResults.html .</pre>
  17. Note the space and dot at the end of each command. The results of your test
  18. will be in TestResults.html in the same directory.
  19. <h2>Platform and CLR Version</h2>
  20. <table BORDER cellSpacing="0" cellPadding="5">
  21. <tr>
  22. <td colspan="2">NUnit.Fixtures.PlatformInfo</td>
  23. </tr>
  24. </table>
  25. <h2>Verify Unit Tests</h2>
  26. <p>
  27. Load and run the NUnit unit tests, verifying that the results are as expected.
  28. When these tests are run on different platforms, different numbers of tests may
  29. be skipped, so the values for Skipped and Run tests are informational only.
  30. <p>
  31. The number of tests in each assembly should be constant across all platforms -
  32. any discrepancy usually means that one of the test source files was not
  33. compiled on the platform. There should be no failures and no tests ignored.
  34. <p><b>Note:</b>
  35. At the moment, the nunit.extensions.tests assembly is failing because the
  36. fixture doesn't initialize addins in the test domain.
  37. <p>
  38. <table BORDER cellSpacing="0" cellPadding="5">
  39. <tr>
  40. <td colspan="6">NUnit.Fixtures.AssemblyRunner</td>
  41. </tr>
  42. <tr>
  43. <td>Assembly</td>
  44. <td>Tests()</td>
  45. <td>Run()</td>
  46. <td>Skipped()</td>
  47. <td>Ignored()</td>
  48. <td>Failures()</td>
  49. </tr>
  50. <tr>
  51. <td>nunit.framework.tests.dll</td>
  52. <td>397</td>
  53. <td>&nbsp;</td>
  54. <td>&nbsp;</td>
  55. <td>0</td>
  56. <td>0</td>
  57. </tr>
  58. <tr>
  59. <td>nunit.core.tests.dll</td>
  60. <td>355</td>
  61. <td>&nbsp;</td>
  62. <td>&nbsp;</td>
  63. <td>0</td>
  64. <td>0</td>
  65. </tr>
  66. <tr>
  67. <td>nunit.util.tests.dll</td>
  68. <td>238</td>
  69. <td>&nbsp;</td>
  70. <td>&nbsp;</td>
  71. <td>0</td>
  72. <td>0</td>
  73. </tr>
  74. <tr>
  75. <td>nunit.mocks.tests.dll</td>
  76. <td>43</td>
  77. <td>&nbsp;</td>
  78. <td>&nbsp;</td>
  79. <td>0</td>
  80. <td>0</td>
  81. </tr>
  82. <tr>
  83. <td>nunit.extensions.tests.dll</td>
  84. <td>5</td>
  85. <td>&nbsp;</td>
  86. <td>&nbsp;</td>
  87. <td>0</td>
  88. <td>0</td>
  89. </tr>
  90. <tr>
  91. <td>nunit-console.tests.dll</td>
  92. <td>40</td>
  93. <td>&nbsp;</td>
  94. <td>&nbsp;</td>
  95. <td>0</td>
  96. <td>0</td>
  97. </tr>
  98. <tr>
  99. <td>nunit.uikit.tests.dll</td>
  100. <td>34</td>
  101. <td>&nbsp;</td>
  102. <td>&nbsp;</td>
  103. <td>0</td>
  104. <td>0</td>
  105. </tr>
  106. <tr>
  107. <td>nunit-gui.tests.dll</td>
  108. <td>15</td>
  109. <td>&nbsp;</td>
  110. <td>&nbsp;</td>
  111. <td>0</td>
  112. <td>0</td>
  113. </tr>
  114. <tr>
  115. <td>nunit.fixtures.tests.dll</td>
  116. <td>6</td>
  117. <td>&nbsp;</td>
  118. <td>&nbsp;</td>
  119. <td>0</td>
  120. <td>0</td>
  121. </tr>
  122. </table>
  123. <h2>Code Snippet Tests</h2>
  124. <p>
  125. These tests create a test assembly from a snippet of code and then load and run
  126. the tests that it contains, verifying that the structure of the loaded tests is
  127. as expected and that the number of tests run, skipped, ignored or failed is
  128. correct.
  129. <p>
  130. <table BORDER cellSpacing="0" cellPadding="5">
  131. <tr>
  132. <td colspan="6">NUnit.Fixtures.SnippetRunner</td>
  133. </tr>
  134. <tr>
  135. <td>Code</td>
  136. <td>Tree()</td>
  137. <td>Run()</td>
  138. <td>Skipped()</td>
  139. <td>Ignored()</td>
  140. <td>Failures()</td>
  141. </tr>
  142. <tr>
  143. <td><pre>public class TestClass
  144. {
  145. }</pre>
  146. </td>
  147. <td>EMPTY</td>
  148. <td>0</td>
  149. <td>0</td>
  150. <td>0</td>
  151. <td>0</td>
  152. </tr>
  153. <tr>
  154. <td><pre>using NUnit.Framework;
  155. [TestFixture]
  156. public class TestClass
  157. {
  158. }</pre>
  159. </td>
  160. <td>TestClass</td>
  161. <td>0</td>
  162. <td>0</td>
  163. <td>0</td>
  164. <td>0</td>
  165. </tr>
  166. <tr>
  167. <td><pre>using NUnit.Framework;
  168. [TestFixture]
  169. public class TestClass
  170. {
  171. [Test]
  172. public void T1() { }
  173. [Test]
  174. public void T2() { }
  175. [Test]
  176. public void T3() { }
  177. }</pre>
  178. </td>
  179. <td><pre>TestClass
  180. &gt;T1
  181. &gt;T2
  182. &gt;T3</pre>
  183. </td>
  184. <td>3</td>
  185. <td>0</td>
  186. <td>0</td>
  187. <td>0</td>
  188. </tr>
  189. <tr>
  190. <td><pre>using NUnit.Framework;
  191. [TestFixture]
  192. public class TestClass1
  193. {
  194. [Test]
  195. public void T1() { }
  196. }
  197. [TestFixture]
  198. public class TestClass2
  199. {
  200. [Test]
  201. public void T2() { }
  202. [Test]
  203. public void T3() { }
  204. }</pre>
  205. </td>
  206. <td><pre>TestClass1
  207. &gt;T1
  208. TestClass2
  209. &gt;T2
  210. &gt;T3</pre>
  211. </td>
  212. <td>3</td>
  213. <td>0</td>
  214. <td>0</td>
  215. <td>0</td>
  216. </tr>
  217. <tr>
  218. <td><pre>using NUnit.Framework;
  219. [TestFixture]
  220. public class TestClass
  221. {
  222. [Test]
  223. public void T1() { }
  224. [Test, Ignore]
  225. public void T2() { }
  226. [Test]
  227. public void T3() { }
  228. }</pre>
  229. </td>
  230. <td><pre>TestClass
  231. &gt;T1
  232. &gt;T2
  233. &gt;T3</pre>
  234. </td>
  235. <td>2</td>
  236. <td>0</td>
  237. <td>1</td>
  238. <td>0</td>
  239. </tr>
  240. <tr>
  241. <td><pre>using NUnit.Framework;
  242. [TestFixture]
  243. public class TestClass
  244. {
  245. [Test]
  246. public void T1() { }
  247. [Test, Explicit]
  248. public void T2() { }
  249. [Test]
  250. public void T3() { }
  251. }</pre>
  252. </td>
  253. <td><pre>TestClass
  254. &gt;T1
  255. &gt;T2
  256. &gt;T3</pre>
  257. </td>
  258. <td>2</td>
  259. <td>1</td>
  260. <td>0</td>
  261. <td>0</td>
  262. </tr>
  263. </table>
  264. <h2>Summary Information</h2>
  265. <table BORDER cellSpacing="0" cellPadding="5">
  266. <tr>
  267. <td colspan="2">fit.Summary</td>
  268. </tr>
  269. </table>
  270. </body>
  271. </html>