-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
42 lines (36 loc) · 1.09 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
module.exports = function (config) {
config.set({
files: [
'karma-shim.js',
{pattern: 'source/js/**/*.js', included: false},
{pattern: 'source/js/**/*.map', included: false},
{pattern: 'source/vendor/**/*.js', included: false},
{pattern: 'source/vendor/**/*.map', included: false}
],
exclude: [
'source/vendor/**/*spec.js'
],
browsers: ['PhantomJS'],
// Chrome, ChromeCanary, Firefox, IE (only Windows), Opera, PhantomJS, Safari (only Mac)
reporters: [
'mocha',
'coverage'
],
preprocessors: {
'source/js/modules/**/*.js': 'coverage'
},
// Optionally, configure the reporter:
coverageReporter: {
type: 'html',
dir: 'coverage/'
},
basePath: './',
captureTimeout: 60000,
colors: true,
frameworks: ['jasmine', 'requirejs'],
logLevel: config.LOG_INFO,
port: 9876,
reportSlowerThan: 500,
runnerPort: 9100
});
};