summaryrefslogtreecommitdiff
path: root/web-ui/karma.conf.js
diff options
context:
space:
mode:
authorOla Bini <ola.bini@gmail.com>2014-07-31 19:29:33 -0300
committerOla Bini <ola.bini@gmail.com>2014-07-31 19:29:33 -0300
commit04cf441c5ae18400c6b4865b0b37a71718dc9d46 (patch)
treedd0b0d049ec00389e2d4561b226c46eb1682b997 /web-ui/karma.conf.js
parent639a663a4c37020003586438fdcd7ac529a00f10 (diff)
Add web-ui based on previous code
Diffstat (limited to 'web-ui/karma.conf.js')
-rw-r--r--web-ui/karma.conf.js85
1 files changed, 85 insertions, 0 deletions
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,
+
+ });
+};