forked from daniellmb/angular-test-patterns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
51 lines (43 loc) · 1.16 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
module.exports = function (config) {
config.set({
// frameworks to use
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: [
// app deps
'../bower_components/angular/angular.js',
'../bower_components/angular-route/angular-route.js',
'../bower_components/angular-mocks/angular-mocks.js',
'../bower_components/angular-sanitize/angular-sanitize.js',
//mock data
'../../spec/mockData.js',
// app code
'app.js',
// mocks
'mock.js',
// generated specs to run
'spec.js'
],
// test results reporter to use
reporters: ['dots', 'coverage'],
// configure which files should be tested for coverage
preprocessors: {
'*.js': 'coverage'
},
// configure coverage reporter
coverageReporter: {
// change to html if you need details
//type: 'html',
type: 'text-summary',
dir: 'coverage'
},
// web server port
port: 9877,
// level of logging
logLevel: config.LOG_DISABLE,
// Test in these browsers
browsers: ['PhantomJS'],
// Continuous Integration mode
singleRun: true
});
};