-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
45 lines (45 loc) · 1.17 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
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ["jasmine"],
preprocessors: {
'dist/**/*.js': ['coverage']
},
files: [
'./node_modules/angular/angular.min.js',
'./node_modules/angular-mocks/angular-mocks.js',
'dist/**/*.js',
'spec/**/*.js'
],
exclude: [], // list of files to exclude
reporters: ['progress', 'junit', 'coverage'],
junitReporter: {
outputFile: 'test-reports/test-results.xml'
},
coverageReporter: {
reporters: [
{
type: 'html',
dir: 'coverage/html/',
watermarks: {
statements: [ 25, 75 ],
functions: [ 25, 75 ],
branches: [ 25, 75 ],
lines: [ 25, 75 ]
}
},
{type: 'clover', dir: 'coverage/clover/'},
{type: 'text', dir: 'coverage/text/', file: 'coverage.txt'},
{type: 'text-summary', dir: 'coverage/text/', file: 'coverage-summary.txt'}
]
},
port: 8080,
runnerPort: 9100,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: ['PhantomJS'],
captureTimeout: 5000,
singleRun: true
});
};