aboutsummaryrefslogtreecommitdiffstats
path: root/test-agent/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'test-agent/index.js')
-rw-r--r--test-agent/index.js43
1 files changed, 43 insertions, 0 deletions
diff --git a/test-agent/index.js b/test-agent/index.js
new file mode 100644
index 0000000..637062b
--- /dev/null
+++ b/test-agent/index.js
@@ -0,0 +1,43 @@
+(function(window) {
+
+ var worker = new TestAgent.BrowserWorker({
+ /* this is where your tests will be loaded into */
+ sandbox: './sandbox.html'
+ });
+
+ worker.use(TestAgent.BrowserWorker.Config, {
+ /* config file which lists all available tests for the ui */
+ url: './config.json'
+ });
+
+ worker.use(TestAgent.BrowserWorker.MochaDriver, {
+ /* path to mocha */
+ mochaUrl: '../vendor/mocha.js',
+ testHelperUrl: '../test/helper.js',
+ reporter: 'HTML'
+ });
+
+ worker.use(TestAgent.BrowserWorker.Websocket);
+ worker.use(TestAgent.BrowserWorker.TestUi);
+ worker.use(TestAgent.BrowserWorker.ErrorReporting);
+
+ worker.on({
+
+ 'sandbox': function() {
+ },
+
+ 'open': function() {
+ console.log('socket open');
+ },
+
+ 'close': function() {
+ console.log('lost client trying to reconnect');
+ }
+
+ });
+
+ worker.config();
+ worker.start();
+
+}(this));
+