|
| 1 | +// Karma configuration |
| 2 | +// Generated on Mon Apr 20 2015 13:03:10 GMT+0200 (CEST) |
| 3 | + |
| 4 | +module.exports = function(config) { |
| 5 | + config.set({ |
| 6 | + |
| 7 | + // base path that will be used to resolve all patterns (eg. files, exclude) |
| 8 | + basePath: '', |
| 9 | + |
| 10 | + |
| 11 | + // frameworks to use |
| 12 | + // available frameworks: https://npmjs.org/browse/keyword/karma-adapter |
| 13 | + frameworks: ['mocha','sinon-chai'], |
| 14 | + |
| 15 | + // list of files / patterns to load in the browser |
| 16 | + files: [ |
| 17 | + "lib/vendor/jquery.js", |
| 18 | + "lib/vendor/underscore.js", |
| 19 | + "lib/vendor/backbone.js", |
| 20 | + "lib/vendor/accounting.js", |
| 21 | + "lib/boot.js", |
| 22 | + "lib/aggregator.js", |
| 23 | + "lib/datastore.js", |
| 24 | + "lib/main.js", |
| 25 | + "lib/model.js", |
| 26 | + "lib/utils/gdocs.js", |
| 27 | + "lib/utils/tree.js", |
| 28 | + "lib/utils/utils.js", |
| 29 | + "lib/widgets.js", |
| 30 | + 'tests/fixtures.js', |
| 31 | + 'tests/**/*.coffee' |
| 32 | + ], |
| 33 | + |
| 34 | + |
| 35 | + // list of files to exclude |
| 36 | + exclude: [ |
| 37 | + '**/*.swp' |
| 38 | + ], |
| 39 | + |
| 40 | + |
| 41 | + // preprocess matching files before serving them to the browser |
| 42 | + // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor |
| 43 | + preprocessors: { |
| 44 | + '**/*.coffee': ['coffee'], |
| 45 | + }, |
| 46 | + |
| 47 | + |
| 48 | + // test results reporter to use |
| 49 | + // possible values: 'dots', 'progress' |
| 50 | + // available reporters: https://npmjs.org/browse/keyword/karma-reporter |
| 51 | + reporters: ['progress'], |
| 52 | + |
| 53 | + |
| 54 | + // web server port |
| 55 | + port: 9876, |
| 56 | + |
| 57 | + |
| 58 | + // enable / disable colors in the output (reporters and logs) |
| 59 | + colors: true, |
| 60 | + |
| 61 | + |
| 62 | + // level of logging |
| 63 | + // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG |
| 64 | + logLevel: config.LOG_INFO, |
| 65 | + |
| 66 | + |
| 67 | + // enable / disable watching file and executing tests whenever any file changes |
| 68 | + autoWatch: true, |
| 69 | + |
| 70 | + |
| 71 | + // start these browsers |
| 72 | + // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher |
| 73 | + browsers: ['PhantomJS'], |
| 74 | + |
| 75 | + |
| 76 | + // Continuous Integration mode |
| 77 | + // if true, Karma captures browsers, runs the tests and exits |
| 78 | + singleRun: false |
| 79 | + }); |
| 80 | +}; |
0 commit comments