Permalink
Browse files

updated cloud9 testing integration

  • Loading branch information...
1 parent 4fe9a13 commit d25678b31b641e111129cfe7cc9cf7219e51ffbb @clintcparker committed Apr 19, 2012
Showing with 14 additions and 0 deletions.
  1. +2 −0 static/js/person/person_test.js
  2. +12 −0 test/c9test.js
  3. 0 test/{person.js → test.person.js}
@@ -0,0 +1,2 @@
+require('../../../test/c9test');
+require('../../../test/test.person');
View
@@ -0,0 +1,12 @@
+if (typeof module !== "undefined" && require.main["filename"].indexOf("_mocha")<0) {
+ var suiteExports = {};
+ global.suite = function(a, fun){
+ fun();
+ module.exports = suiteExports;
+ require("asyncjs").test.testcase(module.exports).exec()
+ }
+
+ global.test = function(txt, testfun){
+ suiteExports["test: " + txt] = testfun;
+ }
+}
File renamed without changes.

0 comments on commit d25678b

Please sign in to comment.