|
| 1 | +// Karma configuration |
| 2 | +// Generated on Tue Oct 27 2015 12:41:22 GMT+0100 (W. Europe Standard Time) |
| 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 | + 'node_modules/jquery/dist/jquery.js', |
| 19 | + 'node_modules/angular/angular.js', |
| 20 | + 'node_modules/angular-mocks/angular-mocks.js', |
| 21 | + 'demoController.js', |
| 22 | + '*.spec.js', |
| 23 | + { pattern: '*.js.map', included: false, served: true } |
| 24 | + ], |
| 25 | + |
| 26 | + |
| 27 | + // list of files to exclude |
| 28 | + exclude: [ |
| 29 | + ], |
| 30 | + |
| 31 | + |
| 32 | + // preprocess matching files before serving them to the browser |
| 33 | + // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor |
| 34 | + preprocessors: { |
| 35 | + }, |
| 36 | + |
| 37 | + |
| 38 | + // test results reporter to use |
| 39 | + // possible values: 'dots', 'progress' |
| 40 | + // available reporters: https://npmjs.org/browse/keyword/karma-reporter |
| 41 | + reporters: ['mocha'], |
| 42 | + |
| 43 | + |
| 44 | + // web server port |
| 45 | + port: 9877, |
| 46 | + |
| 47 | + |
| 48 | + // enable / disable colors in the output (reporters and logs) |
| 49 | + colors: true, |
| 50 | + |
| 51 | + |
| 52 | + // level of logging |
| 53 | + // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG |
| 54 | + logLevel: config.LOG_INFO, |
| 55 | + |
| 56 | + |
| 57 | + // enable / disable watching file and executing tests whenever any file changes |
| 58 | + autoWatch: true, |
| 59 | + |
| 60 | + |
| 61 | + // start these browsers |
| 62 | + // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher |
| 63 | + browsers: ['Chrome'], |
| 64 | + |
| 65 | + |
| 66 | + // Continuous Integration mode |
| 67 | + // if true, Karma captures browsers, runs the tests and exits |
| 68 | + singleRun: false, |
| 69 | + |
| 70 | + // Concurrency level |
| 71 | + // how many browser should be started simultanous |
| 72 | + concurrency: Infinity |
| 73 | + }) |
| 74 | +} |
0 commit comments