forked from luizfar/firedeaz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
55 lines (49 loc) · 1.51 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['mocha', 'chai', 'sinon'],
files: [
'node_modules/angular/angular.min.js',
'node_modules/angular-mocks/angular-mocks.js',
'node_modules/angularfire/dist/angularfire.min.js',
'js/vendor/firebase.js',
'js/vendor/lvl-uuid.js',
'js/vendor/lvl-drag-drop.js',
'node_modules/ng-dialog/js/ngDialog.min.js',
'node_modules/angular-aria/angular-aria.min.js',
'node_modules/angular-sanitize/angular-sanitize.min.js',
'js/**/*.js',
'test/**/*Test.js',
],
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'js/*.js': ['coverage']
},
coverageReporter: {
repoToken: 'QVdqIxSZvbUFLmSiYZ3uINtguZxhuBgy7',
type: 'lcov',
dir: 'coverage/'
},
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['nyan', 'coverage', 'coveralls'],
// web server port
port: 9876,
colors: true,
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_DEBUG,
autoWatch: true,
browsers: ['PhantomJS'],
singleRun: false,
concurrency: Infinity,
plugins: [
'karma-chai',
'karma-mocha',
'karma-phantomjs-launcher',
'karma-coverage',
'karma-coveralls',
'karma-nyan-reporter',
'karma-mocha-reporter',
'karma-sinon',
]
})
}