From 04cf441c5ae18400c6b4865b0b37a71718dc9d46 Mon Sep 17 00:00:00 2001 From: Ola Bini Date: Thu, 31 Jul 2014 19:29:33 -0300 Subject: Add web-ui based on previous code --- web-ui/karma.conf.js | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 web-ui/karma.conf.js (limited to 'web-ui/karma.conf.js') diff --git a/web-ui/karma.conf.js b/web-ui/karma.conf.js new file mode 100644 index 00000000..6a4463fe --- /dev/null +++ b/web-ui/karma.conf.js @@ -0,0 +1,85 @@ +// Karma configuration +// +// For all available config options and default values, see: +// http://karma-runner.github.io/0.10/config/configuration-file.html + +module.exports = function (config) { + 'use strict'; + + config.set({ + + // base path, that will be used to resolve files and exclude + basePath: '', + + // frameworks to use + frameworks: ['jasmine'], + + // list of files / patterns to load in the browser + files: [ + // loaded without require + 'app/bower_components/es5-shim/es5-shim.js', + 'app/bower_components/es5-shim/es5-sham.js', + 'app/bower_components/lodash/dist/lodash.js', + 'app/bower_components/jquery/dist/jquery.js', + 'app/bower_components/jasmine-jquery/lib/jasmine-jquery.js', + 'app/bower_components/jasmine-flight/lib/jasmine-flight.js', + 'app/bower_components/jasmine-jquery/lib/jasmine-jquery.js', + 'app/bower_components/handlebars/handlebars.min.js', + 'app//bower_components/modernizr/modernizr.js', + 'app/bower_components/foundation/js/foundation.js', + 'app/bower_components/foundation/js/foundation/foundation.reveal.js', + 'app/bower_components/foundation/js/foundation/foundation.offcanvas.js', + + // hack to load RequireJS after the shim libs + 'node_modules/requirejs/require.js', + 'node_modules/karma-requirejs/lib/adapter.js', + + // loaded with require + {pattern: 'app/bower_components/flight/**/*.js', included: false}, + {pattern: 'app/bower_components/i18next/**/*.js', included: false}, + {pattern: 'app/bower_components/quoted-printable/*.js', included: false}, + {pattern: 'app/locales/**/*.json', included: false}, + {pattern: 'app/js/**/*.js', included: false}, + {pattern: 'test/test_data.js', included: false}, + {pattern: 'test/spec/**/*.spec.js', included: false}, + + 'test/test-main.js' + ], + + // list of files to exclude + exclude: [ + 'app/js/main.js' + ], + + // test results reporter to use + // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage' + reporters: ['progress'], + + // enable / disable watching file and executing tests whenever any file changes + autoWatch: true, + + // Start these browsers, currently available: + // - Chrome + // - ChromeCanary + // - Firefox + // - Opera + // - Safari (only Mac) + // - PhantomJS + // - IE (only Windows) + browsers: [ + 'PhantomJS' + ], + + // If browser does not capture in given timeout [ms], kill it + captureTimeout: 5000, + + // Continuous Integration mode + // if true, it capture browsers, run tests and exit + singleRun: false, + + // Karma will report all the tests that are slower than given time limit (in + // ms). + reportSlowerThan: 500, + + }); +}; -- cgit v1.2.3