Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2015-09-01 17:53:01 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2015-09-01 17:53:01 +0300
commitb8009568265d3f5a2c5031151fe6e25fa6930b04 (patch)
tree4a5e7afb96fbf98d4dd0293c818cbf0e1218649f /karma.conf.js
parent26b0ce0ce56fa35bea014f633b4987d8e9bab456 (diff)
add jasmine/karma for js unit testing
Diffstat (limited to 'karma.conf.js')
-rw-r--r--karma.conf.js52
1 files changed, 52 insertions, 0 deletions
diff --git a/karma.conf.js b/karma.conf.js
new file mode 100644
index 000000000..62ad31fe9
--- /dev/null
+++ b/karma.conf.js
@@ -0,0 +1,52 @@
+// Karma configuration
+// Generated on Tue Sep 01 2015 13:54:51 GMT+0200 (CEST)
+
+module.exports = function(config) {
+ config.set({
+ // frameworks to use
+ // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
+ frameworks: ['jasmine', 'requirejs'],
+
+ // list of files / patterns to load in the browser
+ files: [
+ '../../core/js/js.js',
+ '../../core/js/oc-dialogs.js',
+ '../../core/vendor/underscore/underscore.js',
+ '../../core/vendor/jquery/jquery.min.js',
+ '../../core/vendor/handlebars/handlebars.js',
+ {pattern: 'js/*/*.js', included: false},
+ {pattern: 'js/vendor/backbone/backbone.js', included: false},
+ {pattern: 'js/tests/TestSpec.js', included: false},
+ 'js/tests/test-main.js',
+ ],
+
+ // list of files to exclude
+ exclude: [
+ 'js/require_config.js',
+ 'js/init.js'
+ ],
+ // preprocess matching files before serving them to the browser
+ // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
+ preprocessors: {
+ },
+ // test results reporter to use
+ // possible values: 'dots', 'progress'
+ // available reporters: https://npmjs.org/browse/keyword/karma-reporter
+ reporters: ['progress'],
+ // web server port
+ port: 9876,
+ // enable / disable colors in the output (reporters and logs)
+ colors: true,
+ // level of logging
+ // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
+ logLevel: config.LOG_INFO,
+ // enable / disable watching file and executing tests whenever any file changes
+ autoWatch: true,
+ // start these browsers
+ // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
+ browsers: ['PhantomJS'],
+ // Continuous Integration mode
+ // if true, Karma captures browsers, runs the tests and exits
+ singleRun: false
+ });
+};