-
Notifications
You must be signed in to change notification settings - Fork 2
/
karma.conf.js
37 lines (37 loc) · 1.04 KB
/
karma.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
module.exports = function (config) {
config.set({
basePath: './',
frameworks: ['jasmine'],
browsers: ['Firefox', 'PhantomJS'],
files: [
'bower_components/angular-1.2.0/angular.min.js',
'bower_components/angular-mocks-1.2.0/angular-mocks.js',
'dist/28.io-angularjs.js',
'test/karma.start.js',
'test/*.js'
],
captureTimeout: 60000,
colors: true,
exclude: ['dist/'],
logLevel: config.LOG_INFO,
port: 9876,
plugins: [
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-phantomjs-launcher',
'karma-jasmine',
'karma-coverage'
],
runnerPort: 9100,
singleRun: true,
autoWatch: false,
coverageReporter: {
type: 'lcov',
dir: 'coverage/'
},
preprocessors: {
'src/28.io-angularjs.js': ['coverage']
},
reporters: ['progress', 'coverage']
});
};