Permalink
Browse files

Added plugin tests to Travis

  • Loading branch information...
1 parent 7e64fa7 commit 99abcc80b9a6e6101a36a589411bde446c3aed82 @davglass committed Apr 24, 2012
Showing with 549 additions and 550 deletions.
  1. +1 −0 src/common/travis/tests.json
  2. +35 −0 src/pluginhost/tests/cli/run.js
  3. +498 −0 src/pluginhost/tests/plugin-tests.js
  4. +15 −550 src/pluginhost/tests/plugins.html
@@ -13,6 +13,7 @@
"/src/yui/tests/cli/run.js",
"/src/intl/tests/cli/run.js",
"/src/oop/tests/cli/run.js",
+ "/src/pluginhost/tests/cli/run.js",
"/src/loader/tests/cli/run.js"
]
}
@@ -0,0 +1,35 @@
+#!/usr/bin/env node
+
+process.chdir(__dirname);
+
+var YUITest = require('yuitest'),
+ path = require('path'),
+ fs = require('fs'),
+ dir = path.join(__dirname, '../../../../build-npm/'),
+ YUI = require(dir).YUI,
+ json;
+
+
+YUI({useSync: true }).use('test', function(Y) {
+ Y.Test.Runner = YUITest.TestRunner;
+ Y.Test.Case = YUITest.TestCase;
+ Y.Test.Suite = YUITest.TestSuite;
+ Y.Assert = YUITest.Assert;
+ Y.ArrayAssert = YUITest.ArrayAssert;
+ Y.ObjectAssert = YUITest.ObjectAssert;
+
+ Y.applyConfig({
+ modules: {
+ 'plugin-tests': {
+ fullpath: path.join(__dirname, '../plugin-tests.js'),
+ requires: ['base-base', 'base-pluginhost', 'base-build', 'plugin', 'test']
+ }
+ }
+ });
+
+ Y.use('plugin-tests');
+
+ Y.Test.Runner.setName('plugin cli tests');
+
+});
+
Oops, something went wrong.

0 comments on commit 99abcc8

Please sign in to comment.