Permalink
Browse files

included package json information and file reorg

  • Loading branch information...
1 parent 06b66ba commit 324d746bf1fee1bf65be084625f7e344dfe54e3d @urigolani committed Oct 4, 2011
Showing with 130 additions and 24,298 deletions.
  1. +73 −0 Readme.md
  2. +11 −0 example/testSuite1.js
  3. +19 −0 example/usageExample.js
  4. +1 −19 index.js
  5. +1 −1 NodeunitWrapper.js → lib/nodeunitWrapper.js
  6. +4 −2 {reporters → lib}/singleTestReporter.js
  7. +5 −5 { → lib}/testService.js
  8. BIN node_modules/.bin/express
  9. BIN node_modules/.bin/nodeunit
  10. +0 −7 node_modules/express/.npmignore
  11. +0 −743 node_modules/express/History.md
  12. +0 −22 node_modules/express/LICENSE
  13. +0 −35 node_modules/express/Makefile
  14. +0 −143 node_modules/express/Readme.md
  15. +0 −417 node_modules/express/bin/express
  16. +0 −2 node_modules/express/index.js
  17. +0 −79 node_modules/express/lib/express.js
  18. +0 −583 node_modules/express/lib/http.js
  19. +0 −52 node_modules/express/lib/https.js
  20. +0 −309 node_modules/express/lib/request.js
  21. +0 −459 node_modules/express/lib/response.js
  22. +0 −53 node_modules/express/lib/router/collection.js
  23. +0 −398 node_modules/express/lib/router/index.js
  24. +0 −70 node_modules/express/lib/router/methods.js
  25. +0 −88 node_modules/express/lib/router/route.js
  26. +0 −139 node_modules/express/lib/utils.js
  27. +0 −457 node_modules/express/lib/view.js
  28. +0 −40 node_modules/express/lib/view/partial.js
  29. +0 −209 node_modules/express/lib/view/view.js
  30. +0 −11 node_modules/express/node_modules/connect/.npmignore
  31. +0 −24 node_modules/express/node_modules/connect/LICENSE
  32. +0 −2 node_modules/express/node_modules/connect/index.js
  33. +0 −81 node_modules/express/node_modules/connect/lib/cache.js
  34. +0 −106 node_modules/express/node_modules/connect/lib/connect.js
  35. +0 −215 node_modules/express/node_modules/connect/lib/http.js
  36. +0 −47 node_modules/express/node_modules/connect/lib/https.js
  37. +0 −46 node_modules/express/node_modules/connect/lib/index.js
  38. +0 −93 node_modules/express/node_modules/connect/lib/middleware/basicAuth.js
  39. +0 −92 node_modules/express/node_modules/connect/lib/middleware/bodyParser.js
  40. +0 −163 node_modules/express/node_modules/connect/lib/middleware/compiler.js
  41. +0 −46 node_modules/express/node_modules/connect/lib/middleware/cookieParser.js
  42. +0 −105 node_modules/express/node_modules/connect/lib/middleware/csrf.js
  43. +0 −222 node_modules/express/node_modules/connect/lib/middleware/directory.js
  44. +0 −100 node_modules/express/node_modules/connect/lib/middleware/errorHandler.js
  45. +0 −76 node_modules/express/node_modules/connect/lib/middleware/favicon.js
  46. +0 −78 node_modules/express/node_modules/connect/lib/middleware/limit.js
  47. +0 −299 node_modules/express/node_modules/connect/lib/middleware/logger.js
  48. +0 −38 node_modules/express/node_modules/connect/lib/middleware/methodOverride.js
  49. +0 −100 node_modules/express/node_modules/connect/lib/middleware/profiler.js
  50. +0 −40 node_modules/express/node_modules/connect/lib/middleware/query.js
  51. +0 −34 node_modules/express/node_modules/connect/lib/middleware/responseTime.js
  52. +0 −379 node_modules/express/node_modules/connect/lib/middleware/router.js
  53. +0 −346 node_modules/express/node_modules/connect/lib/middleware/session.js
  54. +0 −126 node_modules/express/node_modules/connect/lib/middleware/session/cookie.js
  55. +0 −131 node_modules/express/node_modules/connect/lib/middleware/session/memory.js
  56. +0 −137 node_modules/express/node_modules/connect/lib/middleware/session/session.js
  57. +0 −59 node_modules/express/node_modules/connect/lib/middleware/session/store.js
  58. +0 −220 node_modules/express/node_modules/connect/lib/middleware/static.js
  59. +0 −112 node_modules/express/node_modules/connect/lib/middleware/staticCache.js
  60. +0 −44 node_modules/express/node_modules/connect/lib/middleware/vhost.js
  61. +0 −79 node_modules/express/node_modules/connect/lib/patch.js
  62. +0 −75 node_modules/express/node_modules/connect/lib/public/directory.html
  63. +0 −13 node_modules/express/node_modules/connect/lib/public/error.html
  64. BIN node_modules/express/node_modules/connect/lib/public/favicon.ico
  65. BIN node_modules/express/node_modules/connect/lib/public/icons/page.png
  66. BIN node_modules/express/node_modules/connect/lib/public/icons/page_add.png
  67. BIN node_modules/express/node_modules/connect/lib/public/icons/page_attach.png
  68. BIN node_modules/express/node_modules/connect/lib/public/icons/page_code.png
  69. BIN node_modules/express/node_modules/connect/lib/public/icons/page_copy.png
  70. BIN node_modules/express/node_modules/connect/lib/public/icons/page_delete.png
  71. BIN node_modules/express/node_modules/connect/lib/public/icons/page_edit.png
  72. BIN node_modules/express/node_modules/connect/lib/public/icons/page_error.png
  73. BIN node_modules/express/node_modules/connect/lib/public/icons/page_excel.png
  74. BIN node_modules/express/node_modules/connect/lib/public/icons/page_find.png
  75. BIN node_modules/express/node_modules/connect/lib/public/icons/page_gear.png
  76. BIN node_modules/express/node_modules/connect/lib/public/icons/page_go.png
  77. BIN node_modules/express/node_modules/connect/lib/public/icons/page_green.png
  78. BIN node_modules/express/node_modules/connect/lib/public/icons/page_key.png
  79. BIN node_modules/express/node_modules/connect/lib/public/icons/page_lightning.png
  80. BIN node_modules/express/node_modules/connect/lib/public/icons/page_link.png
  81. BIN node_modules/express/node_modules/connect/lib/public/icons/page_paintbrush.png
  82. BIN node_modules/express/node_modules/connect/lib/public/icons/page_paste.png
  83. BIN node_modules/express/node_modules/connect/lib/public/icons/page_red.png
  84. BIN node_modules/express/node_modules/connect/lib/public/icons/page_refresh.png
  85. BIN node_modules/express/node_modules/connect/lib/public/icons/page_save.png
  86. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white.png
  87. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_acrobat.png
  88. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_actionscript.png
  89. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_add.png
  90. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_c.png
  91. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_camera.png
  92. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_cd.png
  93. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_code.png
  94. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_code_red.png
  95. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_coldfusion.png
  96. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_compressed.png
  97. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_copy.png
  98. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_cplusplus.png
  99. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_csharp.png
  100. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_cup.png
  101. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_database.png
  102. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_delete.png
  103. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_dvd.png
  104. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_edit.png
  105. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_error.png
  106. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_excel.png
  107. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_find.png
  108. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_flash.png
  109. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_freehand.png
  110. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_gear.png
  111. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_get.png
  112. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_go.png
  113. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_h.png
  114. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_horizontal.png
  115. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_key.png
  116. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_lightning.png
  117. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_link.png
  118. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_magnify.png
  119. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_medal.png
  120. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_office.png
  121. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_paint.png
  122. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_paintbrush.png
  123. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_paste.png
  124. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_php.png
  125. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_picture.png
  126. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_powerpoint.png
  127. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_put.png
  128. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_ruby.png
  129. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_stack.png
  130. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_star.png
  131. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_swoosh.png
  132. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_text.png
  133. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_text_width.png
  134. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_tux.png
  135. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_vector.png
  136. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_visualstudio.png
  137. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_width.png
  138. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_word.png
  139. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_world.png
  140. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_wrench.png
  141. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_zip.png
  142. BIN node_modules/express/node_modules/connect/lib/public/icons/page_word.png
  143. BIN node_modules/express/node_modules/connect/lib/public/icons/page_world.png
  144. +0 −141 node_modules/express/node_modules/connect/lib/public/style.css
  145. +0 −444 node_modules/express/node_modules/connect/lib/utils.js
  146. +0 −24 node_modules/express/node_modules/connect/package.json
  147. +0 −108 node_modules/express/node_modules/connect/test.js
  148. +0 −6 node_modules/express/node_modules/qs/.gitmodules
  149. +0 −52 node_modules/express/node_modules/qs/History.md
  150. +0 −7 node_modules/express/node_modules/qs/Makefile
  151. +0 −49 node_modules/express/node_modules/qs/Readme.md
  152. +0 −17 node_modules/express/node_modules/qs/benchmark.js
  153. +0 −48 node_modules/express/node_modules/qs/examples.js
  154. +0 −2 node_modules/express/node_modules/qs/index.js
  155. +0 −236 node_modules/express/node_modules/qs/lib/querystring.js
  156. +0 −9 node_modules/express/node_modules/qs/package.json
  157. +0 −3 node_modules/express/node_modules/qs/support/expresso/.gitignore
  158. +0 −3 node_modules/express/node_modules/qs/support/expresso/.gitmodules
  159. +0 −128 node_modules/express/node_modules/qs/support/expresso/History.md
  160. +0 −53 node_modules/express/node_modules/qs/support/expresso/Makefile
  161. +0 −61 node_modules/express/node_modules/qs/support/expresso/Readme.md
  162. +0 −856 node_modules/express/node_modules/qs/support/expresso/bin/expresso
  163. +0 −1,080 node_modules/express/node_modules/qs/support/expresso/docs/api.html
  164. +0 −377 node_modules/express/node_modules/qs/support/expresso/docs/index.html
  165. +0 −290 node_modules/express/node_modules/qs/support/expresso/docs/index.md
  166. +0 −3 node_modules/express/node_modules/qs/support/expresso/docs/layout/foot.html
  167. +0 −42 node_modules/express/node_modules/qs/support/expresso/docs/layout/head.html
  168. +0 −4 node_modules/express/node_modules/qs/support/expresso/lib/bar.js
  169. +0 −16 node_modules/express/node_modules/qs/support/expresso/lib/foo.js
  170. +0 −12 node_modules/express/node_modules/qs/support/expresso/package.json
  171. +0 −91 node_modules/express/node_modules/qs/support/expresso/test/assert.test.js
  172. +0 −12 node_modules/express/node_modules/qs/support/expresso/test/async.test.js
  173. +0 −13 node_modules/express/node_modules/qs/support/expresso/test/bar.test.js
  174. +0 −14 node_modules/express/node_modules/qs/support/expresso/test/foo.test.js
  175. +0 −146 node_modules/express/node_modules/qs/support/expresso/test/http.test.js
  176. +0 −39 node_modules/express/node_modules/qs/support/expresso/test/serial/async.test.js
  177. +0 −48 node_modules/express/node_modules/qs/support/expresso/test/serial/http.test.js
  178. +0 −3 node_modules/express/node_modules/qs/support/should/.gitmodules
  179. +0 −22 node_modules/express/node_modules/qs/support/should/History.md
  180. +0 −6 node_modules/express/node_modules/qs/support/should/Makefile
  181. +0 −248 node_modules/express/node_modules/qs/support/should/Readme.md
  182. +0 −53 node_modules/express/node_modules/qs/support/should/examples/runner.js
  183. +0 −2 node_modules/express/node_modules/qs/support/should/index.js
  184. +0 −91 node_modules/express/node_modules/qs/support/should/lib/eql.js
  185. +0 −548 node_modules/express/node_modules/qs/support/should/lib/should.js
  186. +0 −8 node_modules/express/node_modules/qs/support/should/package.json
  187. +0 −358 node_modules/express/node_modules/qs/support/should/test/should.test.js
  188. +0 −156 node_modules/express/node_modules/qs/test/parse.test.js
  189. +0 −95 node_modules/express/node_modules/qs/test/stringify.test.js
  190. +0 −38 node_modules/express/package.json
  191. +0 −54 node_modules/mime/README.md
  192. +0 −1 node_modules/mime/index.js
  193. +0 −89 node_modules/mime/mime.js
  194. +0 −1,351 node_modules/mime/mime.types
  195. +0 −3 node_modules/mime/node.types
  196. +0 −11 node_modules/mime/package.json
  197. +0 −74 node_modules/mime/test.js
  198. +0 −5 node_modules/nodeunit/.gitignore
  199. +0 −3 node_modules/nodeunit/.npmignore
  200. +0 −60 node_modules/nodeunit/CONTRIBUTORS.md
  201. +0 −19 node_modules/nodeunit/LICENSE
  202. +0 −126 node_modules/nodeunit/Makefile
  203. +0 −426 node_modules/nodeunit/README.md
  204. +0 −120 node_modules/nodeunit/bin/nodeunit
  205. +0 −10 node_modules/nodeunit/bin/nodeunit.json
  206. +0 −623 node_modules/nodeunit/deps/async.js
  207. +0 −55 node_modules/nodeunit/deps/console.log.js
  208. +0 −125 node_modules/nodeunit/deps/ejs.js
  209. +0 −483 node_modules/nodeunit/deps/json2.js
  210. +0 −60 node_modules/nodeunit/doc/nodeunit.md
  211. +0 −1,757 node_modules/nodeunit/examples/browser/nodeunit.js
  212. +0 −12 node_modules/nodeunit/examples/browser/suite1.js
  213. +0 −13 node_modules/nodeunit/examples/browser/suite2.js
  214. +0 −16 node_modules/nodeunit/examples/browser/test.html
  215. BIN node_modules/nodeunit/img/example_fail.png
  216. BIN node_modules/nodeunit/img/example_pass.png
  217. +0 −3 node_modules/nodeunit/index.js
  218. +0 −316 node_modules/nodeunit/lib/assert.js
  219. +0 −260 node_modules/nodeunit/lib/core.js
  220. +0 −82 node_modules/nodeunit/lib/nodeunit.js
  221. +0 −119 node_modules/nodeunit/lib/reporters/browser.js
  222. +0 −123 node_modules/nodeunit/lib/reporters/default.js
  223. +0 −107 node_modules/nodeunit/lib/reporters/html.js
  224. +0 −9 node_modules/nodeunit/lib/reporters/index.js
  225. +0 −183 node_modules/nodeunit/lib/reporters/junit.js
  226. +0 −112 node_modules/nodeunit/lib/reporters/minimal.js
  227. +0 −105 node_modules/nodeunit/lib/reporters/skip_passed.js
  228. +0 −48 node_modules/nodeunit/lib/track.js
  229. +0 −187 node_modules/nodeunit/lib/types.js
  230. +0 −209 node_modules/nodeunit/lib/utils.js
  231. +0 −95 node_modules/nodeunit/man1/nodeunit.1
  232. +0 −4 node_modules/nodeunit/nodelint.cfg
  233. +0 −56 node_modules/nodeunit/package.json
  234. +0 −19 node_modules/nodeunit/share/junit.xml.ejs
  235. +0 −11 node_modules/nodeunit/share/license.js
  236. +0 −70 node_modules/nodeunit/share/nodeunit.css
  237. +0 −4 node_modules/nodeunit/test/fixtures/coffee/mock_coffee_module.coffee
  238. +0 −1 node_modules/nodeunit/test/fixtures/dir/mock_module3.js
  239. +0 −1 node_modules/nodeunit/test/fixtures/dir/mock_module4.js
  240. +0 −1 node_modules/nodeunit/test/fixtures/mock_module1.js
  241. +0 −1 node_modules/nodeunit/test/fixtures/mock_module2.js
  242. +0 −3 node_modules/nodeunit/test/fixtures/raw_jscode1.js
  243. +0 −3 node_modules/nodeunit/test/fixtures/raw_jscode2.js
  244. +0 −1 node_modules/nodeunit/test/fixtures/raw_jscode3.js
  245. +0 −219 node_modules/nodeunit/test/test-base.js
  246. +0 −114 node_modules/nodeunit/test/test-failing-callbacks.js
  247. +0 −55 node_modules/nodeunit/test/test-httputil.js
  248. +0 −214 node_modules/nodeunit/test/test-runfiles.js
  249. +0 −177 node_modules/nodeunit/test/test-runmodule.js
  250. +0 −46 node_modules/nodeunit/test/test-runtest.js
  251. +0 −31 node_modules/nodeunit/test/test-sandbox.js
  252. +0 −234 node_modules/nodeunit/test/test-testcase.js
  253. +0 −26 node_modules/nodeunit/test/test.html
  254. +0 −55 node_modules/request/LICENSE
  255. +0 −191 node_modules/request/README.md
  256. +0 −150 node_modules/request/cookies.js
  257. +0 −447 node_modules/request/main.js
  258. +0 −146 node_modules/request/mimetypes.js
  259. +0 −14 node_modules/request/package.json
  260. 0 node_modules/request/test.js
  261. BIN node_modules/request/tests/googledoodle.png
  262. +0 −46 node_modules/request/tests/server.js
  263. +0 −78 node_modules/request/tests/test-body.js
  264. 0 node_modules/request/tests/test-cookies.js
  265. +0 −30 node_modules/request/tests/test-errors.js
  266. +0 −136 node_modules/request/tests/test-pipes.js
  267. +0 −18 node_modules/request/tests/test-put.js
  268. +0 −7 node_modules/request/tests/test-ssl.js
  269. +0 −84 node_modules/request/tests/test-timeout.js
  270. +16 −0 package.json
  271. +0 −18 testSuite1.js
View
@@ -0,0 +1,73 @@
+
+# rinuts
+
+ Exposes nodeunit based tests through a RESTful api, allowing to remotely query for the urls of supported tests and to activate them, receiving a detailed test run summary.
+
+ built on [node](http://nodejs.org) and [express](http://github.com/visionmedia/express).
+
+## Installation
+
+ Install with [npm](http://github.com/isaacs/npm):
+
+ $ npm install rinuts
+
+## Usage
+
+### Starting the service:
+
+ // Assuming testSuite1 and testSuite2 are two nodeunit based test modules, Creating an endpoint to expose the included modules is done as follows:
+
+ var services = {},
+ testService = null;
+
+ services.rinuts = require('./rinuts');
+ testService = new services.rinuts();
+
+ // add test modules
+ testService.addModules([{name: 'Suite1', module: require('./testSuite1')}, {name: 'Suite2', module: require('./testSuite1')}]);
+
+ // start listening
+ testService.listen('9999');
+
+### Service API:
+
+ * addModule(module):
+ Adds a test module to the service to be exposed.
+ [Argument] module - a pair of 'name , module'. has the form of {name: *moduleName*, module: *theModule*}
+
+ * addModules(modules):
+ Adds test modules to the service to be exposed.
+ [Argument] modules - array of 'name , module' pairs. has the form of [{name: *moduleName*, module: *theModule*},..]
+
+ * listen(port)
+ Starts listening for requests on port.
+ [Argument] port - string specifying the port number to listen on.
+
+
+### HTTP exposed API:
+
+ * GET /tests : JSON response with a list of the tests exposed. Each test includes it's unique name and a POST URL which can be used to execute it. The list structure is as follows:
+ {
+ "*moduleName_testName*": {
+ "name": "*testName*",
+ "module":"*moduleName*",
+ "url":"/tests/*moduleName*/*testName*"
+ }
+ ...
+ }
+
+ * GET /tests/:testName : Returns an individual entry from the list above.
+
+ * POST /tests/:testName : Executes the individual test and returns the test run summary, including stdout/err capture, in the following structure:
+ {
+ "name": *testName*,
+ "duration": *in milliseconds*,
+ "state": *true|false*,
+ "assertions": [{
+ "method": *ok | fail etc..*
+ "success": *true|false*,
+ "message": *assertion message*, // included only for failed tests
+ "stack": *stack trace*, // included only for failed tests
+ }...
+ ]
+ }
View
@@ -0,0 +1,11 @@
+// Test File
+
+exports.test1 = function (test){
+ test.ok(true, 'Test should pass');
+ test.done();
+};
+
+exports.test2 = function (test){
+ test.fail(true, 'Test should fail');
+ test.done();
+};
View
@@ -0,0 +1,19 @@
+var services = {},
+ testService = null;
+
+services.testService = require('./../lib/testService');
+testService = new services.testService();
+
+// add test module
+testService.addModules([{name: 'Suite1', module: require('./testSuite1')}, {name: 'Suite2', module: require('./testSuite1')}]);
+
+// start listening
+testService.listen('9999');
+
+
+
+
+
+
+
+
View
@@ -1,19 +1 @@
-var services = {},
- testService = null;
-
-services.testService = require('./testService');
-testService = new services.testService();
-
-// add test module
-testService.addModules([{name: 'Suite1', module: require('./testSuite1')}, {name: 'Suite2', module: require('./testSuite1')}]);
-
-// start listening
-testService.listen(process.argv[3]);
-
-
-
-
-
-
-
-
+moudle.exports = require('./lib/testService);
@@ -1,4 +1,4 @@
-var testRunner = require('./reporters/singleTestReporter');
+var testRunner = require('./singleTestReporter');
//
// This method runs a test *testName* from *testModule* and calls the callback on the
@@ -7,8 +7,10 @@
duration: *in milliseconds*,
state: *true|false*,
assertions: [{
- message: *assertion message*,
- stack: *stack trace*,
+ method: *ok | fail etc..*
+ success: *true|false*,
+ message: *assertion message*, // included only for failed tests
+ stack: *stack trace*, // included only for failed tests
}...
]
}
@@ -1,4 +1,3 @@
-(function(){
// the node unit test runner api
var testRunner = require('./nodeUnitWrapper'),
// the express web server
@@ -25,7 +24,9 @@ var testRunner = require('./nodeUnitWrapper'),
var testService = function(){
this.init();
};
-
+
+module.exports = testService;
+
testService.prototype = {
//
// Initializes the testService and creates web path handlers for REST api
@@ -72,7 +73,8 @@ testService.prototype = {
// Start listening on a port
// port {string}: The port to listen on
listen: function(port){
- this.webService.listen(port);
+ this.webService.listen(port);
+ console.log('listening to port ' + port);
},
//
// Adds a test module to the test service tests arsenal.
@@ -105,5 +107,3 @@ testService.prototype = {
}
}
-module.exports = testService;
-}())
View
Binary file not shown.
View
Binary file not shown.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 324d746

Please sign in to comment.