Permalink
Browse files

Bit of a hack to load files from another server under Testacular. Sti…

…ll doesn't work.
  • Loading branch information...
1 parent 5d65c7a commit 81ff6a5ef500eba6d62c8bcc93b21e1dec5bdfc4 @jcoglan committed Dec 7, 2012
Showing with 17 additions and 10 deletions.
  1. +1 −0 test/runner.js
  2. +16 −10 test/testacular.js
View
@@ -1,6 +1,7 @@
JS.ENV.CWD = (typeof CWD === 'undefined') ? '.' : CWD
JS.cacheBust = true
+if (JS.ENV.JS_DEBUG) JS.debug = true
JS.Packages(function() { with(this) {
autoload(/^(.*)Spec$/, {from: CWD + '/test/specs', require: 'JS.$1'})
View
@@ -1,11 +1,17 @@
-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;
+CWD = 'http://localhost:8000'
+JSCLASS_PATH = CWD + '/build/min'
+JS_DEBUG = true
+
+if (typeof window === 'undefined') {
+ basePath = '..'
+ files = ['test/testacular.js', JSCLASS_PATH + '/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 81ff6a5

Please sign in to comment.