Permalink
Browse files

Begin work on Testcular support -- got held up trying to make it load…

… my files.
  • Loading branch information...
1 parent 58bd694 commit 3d6e63294c556f570c0fb8e243d05e0c3c1442a0 @jcoglan committed Dec 6, 2012
Showing with 37 additions and 3 deletions.
  1. +1 −0 jake.yml
  2. +1 −1 package.json
  3. +20 −0 source/test/reporters/testacular.js
  4. +4 −2 source/test/ui/browser.js
  5. +11 −0 test/testacular.js
View
@@ -80,6 +80,7 @@ packages:
- reporters/exit_status
- reporters/browser
- reporters/console
+ - reporters/testacular
- reporters/testem
- reporters/test_swarm
- reporters/composite
View
@@ -9,7 +9,7 @@
, "main" : "./index"
, "bin" : {"jsbuild": "./bin/jsbuild"}
, "dependencies" : {"nopt": ""}
-, "devDependencies" : {"testem": ""}
+, "devDependencies" : {"testacular": "", "testem": ""}
, "scripts" : {"test": "TAP=1 node test/console.js"}
@@ -0,0 +1,20 @@
+JS.Test.Reporters.extend({
+ Testacular: new JS.Class({
+ startRun: function(event) {},
+
+ startSuite: function(event) {},
+
+ startTest: function(event) {},
+
+ addFault: function(event) {},
+
+ endTest: function(event) {},
+
+ endSuite: function(event) {},
+
+ update: function(event) {},
+
+ endRun: function(event) {}
+ })
+});
+
@@ -33,10 +33,12 @@ JS.Test.UI.extend({
reporters.push(browser);
- if (JS.ENV.TestSwarm)
- reporters.push(new R.TestSwarm(options, browser));
+ if (JS.ENV.__testacular__)
+ reporters.push(new R.Testacular(options));
else if (JS.ENV.Testem)
reporters.push(new R.Testem(options));
+ else if (JS.ENV.TestSwarm)
+ reporters.push(new R.TestSwarm(options, browser));
else
reporters.push(new R.Console(options));
View
@@ -0,0 +1,11 @@
+basePath = '..';
+files = ['build/min/loader-browser.js', 'test/runner.js'];
+reporters = ['progress'];
+port = 8080;
+runnerPort = 9100;
+colors = true;
+logLevel = LOG_INFO;
+autoWatch = true;
+captureTimeout = 5000;
+singleRun = false;
+

0 comments on commit 3d6e632

Please sign in to comment.