Matteo Scandolo | 7cd88ba | 2015-12-16 14:23:08 -0800 | [diff] [blame] | 1 | // Karma configuration |
| 2 | // Generated on Sat Mar 28 2015 11:17:34 GMT-0700 (PDT) |
| 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: ['jasmine'], |
| 14 | |
| 15 | |
| 16 | // list of files / patterns to load in the browser |
| 17 | files: [ |
| 18 | 'misc/test-lib/jquery-1.8.2.min.js', |
| 19 | 'node_modules/angular/angular.js', |
| 20 | 'node_modules/angular-mocks/angular-mocks.js', |
| 21 | 'node_modules/angular-sanitize/angular-sanitize.js', |
| 22 | 'misc/test-lib/helpers.js', |
| 23 | 'src/**/*.js', |
| 24 | 'template/**/*.js' |
| 25 | ], |
| 26 | |
| 27 | |
| 28 | // list of files to exclude |
| 29 | exclude: [ |
| 30 | 'src/**/docs/*' |
| 31 | ], |
| 32 | |
| 33 | |
| 34 | // preprocess matching files before serving them to the browser |
| 35 | // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor |
| 36 | preprocessors: { |
| 37 | }, |
| 38 | |
| 39 | |
| 40 | // test results reporter to use |
| 41 | // possible values: 'dots', 'progress' |
| 42 | // available reporters: https://npmjs.org/browse/keyword/karma-reporter |
| 43 | reporters: ['progress'], |
| 44 | |
| 45 | reportSlowerThan: 100, |
| 46 | |
| 47 | // web server port |
| 48 | port: 9876, |
| 49 | |
| 50 | |
| 51 | // enable / disable colors in the output (reporters and logs) |
| 52 | colors: true, |
| 53 | |
| 54 | |
| 55 | // level of logging |
| 56 | // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG |
| 57 | logLevel: config.LOG_INFO, |
| 58 | |
| 59 | |
| 60 | // enable / disable watching file and executing tests whenever any file changes |
| 61 | autoWatch: true, |
| 62 | |
| 63 | |
| 64 | // start these browsers |
| 65 | // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher |
| 66 | browsers: ['Chrome'], |
| 67 | |
| 68 | |
| 69 | // Continuous Integration mode |
| 70 | // if true, Karma captures browsers, runs the tests and exits |
| 71 | singleRun: false |
| 72 | }); |
| 73 | }; |