|
| 1 | +module.exports = function(config) { |
| 2 | + config.set({ |
| 3 | + |
| 4 | + // base path, that will be used to resolve files and exclude |
| 5 | + basePath: '', |
| 6 | + |
| 7 | + frameworks: ['jasmine'], |
| 8 | + |
| 9 | + plugins: [ |
| 10 | + 'karma-jasmine', |
| 11 | + 'karma-chrome-launcher', |
| 12 | + 'karma-phantomjs-launcher' |
| 13 | + ], |
| 14 | + |
| 15 | + // list of files / patterns to load in the browser |
| 16 | + files: [ |
| 17 | + 'bower/angular/angular.js', |
| 18 | + 'bower/angular-mocks/angular-mocks.js', |
| 19 | + 'dist/growl-notifications.js', |
| 20 | + 'test/unit/**/*.js' |
| 21 | + ], |
| 22 | + |
| 23 | + |
| 24 | + // list of files to exclude |
| 25 | + exclude: [], |
| 26 | + |
| 27 | + |
| 28 | + // test results reporter to use |
| 29 | + // possible values: 'dots', 'progress', 'junit' |
| 30 | + reporters: ['progress'], |
| 31 | + |
| 32 | + |
| 33 | + // web server port |
| 34 | + port: 9876, |
| 35 | + |
| 36 | + |
| 37 | + // cli runner port |
| 38 | + runnerPort: 9100, |
| 39 | + |
| 40 | + |
| 41 | + // enable / disable colors in the output (reporters and logs) |
| 42 | + colors: true, |
| 43 | + |
| 44 | + |
| 45 | + // level of logging |
| 46 | + // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG |
| 47 | + logLevel: config.LOG_INFO, |
| 48 | + |
| 49 | + |
| 50 | + // enable / disable watching file and executing tests whenever any file changes |
| 51 | + autoWatch: true, |
| 52 | + |
| 53 | + |
| 54 | + // Start these browsers, currently available: |
| 55 | + // - Chrome |
| 56 | + // - ChromeCanary |
| 57 | + // - Firefox |
| 58 | + // - Opera |
| 59 | + // - Safari (only Mac) |
| 60 | + // - PhantomJS |
| 61 | + // - IE (only Windows) |
| 62 | + browsers: ['Chrome'], |
| 63 | + |
| 64 | + |
| 65 | + // If browser does not capture in given timeout [ms], kill it |
| 66 | + captureTimeout: 60000, |
| 67 | + |
| 68 | + |
| 69 | + // Continuous Integration mode |
| 70 | + // if true, it capture browsers, run tests and exit |
| 71 | + singleRun: false |
| 72 | + |
| 73 | + }); |
| 74 | +}; |
| 75 | + |
0 commit comments