This repository has been archived by the owner on Jul 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
83 lines (71 loc) · 2.26 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
// Testacular configuration
// list of files / patterns to load in the browser
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
'static/js/lib/underscore-min.js',
'static/js/lib/lodash.custom.js',
'static/js/lib/jquery.js',
'static/js/lib/angular/angular.js',
'static/js/lib/angular/angular-resource.js',
'static/js/lib/angular/ui-bootstrap.js',
'test/lib/angular-mocks.js',
'static/js/lib/sprintf/*.js',
'static/js/app/help.js',
'static/js/modules/**/*-module.js',
'static/js/modules/**/*.js',
'static/js/constants.js',
'static/js/filters/filters_module.js',
'static/js/filters/*.js',
'static/js/interceptors/*_module.js',
'static/js/interceptors/*.js',
'static/js/models/models_module.js',
'static/js/models/*.js',
'static/js/services/services_module.js',
'static/js/services/*.js',
'static/js/controllers/controller_module.js',
'static/js/controllers/**/*.js',
'static/js/directives/directive_module.js',
'static/js/directives/*.js',
'test/mocks/mock.js',
'test/mocks/**/*.js',
'test/mocks/register-mocks.js',
'test/spec/**/*.js',
'test/leak/**/*.js'
],
// test results reporter to use
// possible values: dots, progress, junit, growl, coverage
reporters: ['dots'],
junitReporter: {
outputDir: 'test-results',
suite: 'karma-tests (old ui)'
},
port: 9876,
// enable / disable colors in the output (reporters and logs)
colors: true,
// level of logging
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
logLevel: config.LOG_WARN,
// enable / disable watching file and executing tests whenever any file changes
autoWatch: false,
// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari
// - PhantomJS
browsers: ['ChromeNoProxy', 'Firefox'],
customLaunchers: {
ChromeNoProxy: {
base: 'Chrome',
flags: ['--no-proxy-server']
}
},
// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun: true
});
};