This repository was archived by the owner on Apr 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
99 lines (75 loc) · 3.08 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/* jshint node:true */
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// frameworks to use
frameworks: ['mocha', 'chai', 'sinon-chai'],
// list of files / patterns to load in the browser
files: [
// bower:js
'compiled/bower_components/angular/angular.js',
'compiled/bower_components/angular-animate/angular-animate.js',
'compiled/bower_components/angular-sanitize/angular-sanitize.js',
'compiled/bower_components/angular-resource/angular-resource.js',
'compiled/bower_components/angular-route/angular-route.js',
'compiled/bower_components/angular-messages/angular-messages.js',
'compiled/bower_components/angular-bootstrap/ui-bootstrap-tpls.js',
'compiled/bower_components/lodash/lodash.js',
'compiled/bower_components/moment/moment.js',
'compiled/bower_components/html2canvas/build/html2canvas.js',
'compiled/bower_components/angular-hotkeys/build/hotkeys.min.js',
'compiled/bower_components/ng-debounce/angular-debounce.js',
'compiled/bower_components/encore-ui/encore-ui.js',
// endbower
'compiled/bower_components/angular-mocks/angular-mocks.js',
'compiled/src/app.js', // always load app definition first
'compiled/src/**/*.js',
'test/browser-helpers.js'
// '../test/window-hack.js', // Only load when preventing window.location redirects
],
// list of files to exclude
exclude: [
],
preprocessors: {
'compiled/src/**/!(*.spec).js': ['coverage']
},
// test results reporter to use
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
reporters: ['mocha', 'coverage'],
coverageReporter: {
type : 'html',
dir : 'dist/coverage/'
},
thresholdReporter: {
statements: 90,
branches: 60,
functions: 85,
lines: 90
},
// web server port
port: 9876,
// enable / disable colors in the output (reporters and logs)
colors: true,
// level of logging
// possible values:
// config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_WARN,
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
browsers: ['PhantomJS'],
// If browser does not capture in given timeout [ms], kill it
captureTimeout: 60000,
// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun: false
});
};