-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
40 lines (34 loc) · 1.27 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
module.exports = function(config) {
config.set({
files: [
'node_modules/jquery/dist/jquery.js',
'node_modules/underscore/underscore.js',
'node_modules/backbone/backbone.js',
'test/ui/mock-services.client.js',
'src/ui/components/**/*.client.js',
'src/ui/components/**/*.spec.js',
'src/ui/dialogs/**/*.client.js',
'src/ui/dialogs/**/*.spec.js',
'src/ui/sidebars/**/*.client.js',
'src/ui/sidebars/**/*.spec.js',
{pattern: 'test/ui/fixtures/*.html', served: true, included: false}
],
frameworks: ['jquery-jasmine', 'jasmine', 'jquery-2.1.0'],
browsers: ['PhantomJS'],
// coverage reporter generates the coverage
reporters: ['progress', 'coverage'],
preprocessors: {
// source files, that you wanna generate coverage for
// do not include tests or libraries
// (these files will be instrumented by Istanbul)
'src/**/*.client.js': ['coverage'],
'**/*.html': []
},
// optionally, configure the reporter
coverageReporter: {
type : 'html',
dir : 'coverage/'
},
singleRun: false
});
};