Skip to content

Commit

Permalink
Wallaby continuous testing configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Walch committed Nov 22, 2016
1 parent bc319d9 commit a7a83ad
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 155 deletions.
78 changes: 0 additions & 78 deletions src/js/utils/fetch.js

This file was deleted.

19 changes: 13 additions & 6 deletions test/config.js
@@ -1,7 +1,7 @@
(function () {
(function() {

// This allows us to test modules without loading full player
window.__BUILD_VERSION__ = '7.3.0';
window.__BUILD_VERSION__ = '7.8.0';
window.__FLASH_VERSION__ = 11.2;
window.__REPO__ = '';
window.__SELF_HOSTED__ = true;
Expand All @@ -20,14 +20,21 @@
if (!('Promise' in window)) {
deps.push('polyfills/promise');
}
if (!('console' in window) || !('log' in window.console) ) {
if (!('console' in window) || !('log' in window.console)) {
window.console = {
log: function() {}
log: function() {
}
};
}


if (window.__karma__) {
if (window.wallaby) {
window.wallaby.delayStart();
base = '../../';
for (var file in window.wallaby.tests) {
deps.push(window.wallaby.tests[file]);
}
callback = window.wallaby.start;
} else if (window.__karma__) {
base = '/base/';
for (var file in window.__karma__.files) {
if (/test\/unit\/[^\/]+\.js$/.test(file)) {
Expand Down
1 change: 0 additions & 1 deletion test/tests.js
Expand Up @@ -9,7 +9,6 @@ define([
'unit/dom-test',
'unit/dfxp-test',
'unit/embed-swf-test',
'unit/fetch-test',
'unit/extendable-test',
'unit/helpers-test',
'unit/jwplayer-selectplayer-test',
Expand Down
2 changes: 1 addition & 1 deletion test/unit/ajax-test.js
Expand Up @@ -210,7 +210,7 @@ define([
var done = assert.async();

utils.ajax({
url: 'failUrl',
url: 'foobar',
oncomplete: function() {
assert.ok(false, 'expected error callback with invalid "File not found"');
done();
Expand Down
69 changes: 0 additions & 69 deletions test/unit/fetch-test.js

This file was deleted.

35 changes: 35 additions & 0 deletions wallaby.js
@@ -0,0 +1,35 @@
module.exports = function() {
return {
files: [
//3rd Party Code
{pattern: 'node_modules/handlebars/dist/*.js', load: false, instrument: false},
{pattern: 'node_modules/handlebars-loader/*.js', load: false, instrument: false},
{pattern: 'node_modules/jquery/dist/*.js', load: false, instrument: false},
{pattern: 'node_modules/phantomjs-polyfill/*.js', load: false, instrument: false},
{pattern: 'node_modules/requirejs/require.js', instrument: false},
{pattern: 'node_modules/requirejs-handlebars/*.js', load: false, instrument: false},
{pattern: 'node_modules/requirejs-text/*.js', load: false, instrument: false},
{pattern: 'node_modules/require-less/*.js', load: false, instrument: false},
{pattern: 'node_modules/simple-style-loader/addStyles.js', load: false, instrument: false},
{pattern: 'node_modules/underscore/*.js', load: false, instrument: false},

// Source
{pattern: 'src/js/**/*.js', load: false},
{pattern: 'src/css/**/*.less', load: false},
{pattern: 'src/templates/**/*.html', load: false},

// Require Config
{pattern: 'test/config.js', instrument: false},

// Test Data
{pattern: 'test/data/*.js', load: false, instrument: false},
{pattern: 'test/data/*.json', load: false, instrument: false},
{pattern: 'test/data/*.xml', load: false, instrument: false},
{pattern: 'test/mock/*.js', load: false, instrument: false},
],
tests: [
{pattern: 'test/unit/*.js', load: false},
],
testFramework: 'qunit'
};
};

0 comments on commit a7a83ad

Please sign in to comment.