diff options
| author | Alon Levy <alon@pobox.com> | 2015-08-09 19:38:49 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-08-09 19:45:06 +0300 |
| commit | aafc58c9e15143dd5239950340579efee5c95979 (patch) | |
| tree | 1ae5625a7049890f54c783126a4784f4a1578fdd /karma.conf.js | |
| parent | 3b0ec2629ebee58e2b49c614d8addf2e5da23e1c (diff) | |
initial tests based on karma + jasmine, run with karma start
Diffstat (limited to 'karma.conf.js')
| -rw-r--r-- | karma.conf.js | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/karma.conf.js b/karma.conf.js new file mode 100644 index 00000000..3f3e0c46 --- /dev/null +++ b/karma.conf.js @@ -0,0 +1,69 @@ +// Karma configuration +// Generated on Sun Aug 09 2015 18:42:14 GMT+0300 (IDT) + +module.exports = function(config) { + config.set({ + + // base path that will be used to resolve all patterns (eg. files, exclude) + basePath: '', + + + // 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: [ + 'src/client/test-main.js', + {pattern: 'res/client/**/*.js', included: false}, + {pattern: 'src/client/**/*.js', included: false}, + ], + + + // list of files to exclude + exclude: [ + 'src/client/main.js', + 'src/client/app.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_DEBUG, + + + // 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: ['Chrome'], + + + // Continuous Integration mode + // if true, Karma captures browsers, runs the tests and exits + singleRun: false + }) +} |
