|
| 1 | +// Karma configuration |
| 2 | +// Generated on %DATE% |
| 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 | + |
| 19 | + |
| 20 | + // list of files to exclude |
| 21 | + // exclude: [], |
| 22 | + |
| 23 | + |
| 24 | + // preprocess matching files before serving them to the browser |
| 25 | + // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor |
| 26 | + // preprocessors: %PREPROCESSORS%, |
| 27 | + |
| 28 | + |
| 29 | + // test results reporter to use |
| 30 | + // possible values: 'dots', 'progress' |
| 31 | + // available reporters: https://npmjs.org/browse/keyword/karma-reporter |
| 32 | + // reporters: ['progress'], |
| 33 | + |
| 34 | + |
| 35 | + // web server port |
| 36 | + port: 8001, |
| 37 | + |
| 38 | + |
| 39 | + // enable / disable colors in the output (reporters and logs) |
| 40 | + colors: true, |
| 41 | + |
| 42 | + |
| 43 | + // level of logging |
| 44 | + // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG |
| 45 | + logLevel: config.LOG_INFO, |
| 46 | + |
| 47 | + |
| 48 | + // enable / disable watching file and executing tests whenever any file changes |
| 49 | + autoWatch: 'disable', |
| 50 | + |
| 51 | + |
| 52 | + // start these browsers |
| 53 | + // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher |
| 54 | + browsers: ['PhantomJS'], |
| 55 | + |
| 56 | + |
| 57 | + // Continuous Integration mode |
| 58 | + // if true, Karma captures browsers, runs the tests and exits |
| 59 | + // singleRun: false |
| 60 | + }); |
| 61 | +}; |
0 commit comments